mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
No libproc.h on iOS.
This commit is contained in:
parent
9d7c4a2861
commit
c4d46f1c24
@ -28,8 +28,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
# include <TargetConditionals.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
# include <libproc.h>
|
# if TARGET_OS_IOS == 0
|
||||||
|
# include <libproc.h>
|
||||||
|
# endif
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
# include <sys/sysctl.h>
|
# include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
@ -227,9 +230,11 @@ static const char* GetProcessName()
|
|||||||
#elif defined _GNU_SOURCE || defined __CYGWIN__
|
#elif defined _GNU_SOURCE || defined __CYGWIN__
|
||||||
processName = program_invocation_short_name;
|
processName = program_invocation_short_name;
|
||||||
#elif defined __APPLE__
|
#elif defined __APPLE__
|
||||||
|
# if TARGET_OS_IOS == 0
|
||||||
static char buf[1024];
|
static char buf[1024];
|
||||||
proc_name( getpid(), buf, 1024 );
|
proc_name( getpid(), buf, 1024 );
|
||||||
processName = buf;
|
processName = buf;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
return processName;
|
return processName;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user