From c4d46f1c24ff5d5e2be30bba7c76dff9ebd1229b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 21 Feb 2019 11:33:21 +0100 Subject: [PATCH] No libproc.h on iOS. --- client/TracyProfiler.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 8f169cb2..9879f2e4 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -28,8 +28,11 @@ #endif #ifdef __APPLE__ +# include # include -# include +# if TARGET_OS_IOS == 0 +# include +# endif # include # include #endif @@ -227,9 +230,11 @@ static const char* GetProcessName() #elif defined _GNU_SOURCE || defined __CYGWIN__ processName = program_invocation_short_name; #elif defined __APPLE__ +# if TARGET_OS_IOS == 0 static char buf[1024]; proc_name( getpid(), buf, 1024 ); processName = buf; +# endif #endif return processName; }