mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
Fix iOS build
This commit is contained in:
parent
d8603f2502
commit
ab3c27bda3
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user