Fix iOS build

This commit is contained in:
pancake 2013-10-01 17:14:50 +02:00
parent d8603f2502
commit ab3c27bda3
2 changed files with 7 additions and 2 deletions

View File

@ -157,3 +157,4 @@ The door is everything.
The door controls time and space.
The door can see into your soul.
Undefined symbol 'r_anal_fisting'
I am Pentium of Borg. Division is futile. You will be approximated

View File

@ -9,8 +9,12 @@
#endif
#if __APPLE__
#include <errno.h>
#include <libproc.h>
#include <execinfo.h>
#ifndef PROC_PIDPATHINFO_MAXSIZE
#define PROC_PIDPATHINFO_MAXSIZE 512
#else
#include <libproc.h>
#endif
#endif
#if __UNIX__
# include <sys/wait.h>
@ -541,7 +545,7 @@ R_API char *r_sys_pid_to_path(int pid) {
return NULL;
#elif __APPLE__
char pathbuf[PROC_PIDPATHINFO_MAXSIZE];
int ret = proc_pidpath (pid, pathbuf, sizeof(pathbuf));
int ret = proc_pidpath (pid, pathbuf, sizeof (pathbuf));
if (ret <= 0)
return NULL;
return strdup (pathbuf);