diff --git a/src/unix/darwin-proctitle.c b/src/unix/darwin-proctitle.c index e6c85905..c3171a61 100644 --- a/src/unix/darwin-proctitle.c +++ b/src/unix/darwin-proctitle.c @@ -18,11 +18,18 @@ * IN THE SOFTWARE. */ -#include -#include +#include + +#if !TARGET_OS_IPHONE +# include +# include +#endif int uv__set_process_title(const char* title) { +#if TARGET_OS_IPHONE + return -1; +#else typedef CFTypeRef (*LSGetCurrentApplicationASNType)(void); typedef OSStatus (*LSSetApplicationInformationItemType)(int, CFTypeRef, @@ -76,4 +83,5 @@ int uv__set_process_title(const char* title) { NULL); return (err == noErr) ? 0 : -1; +#endif /* !TARGET_OS_IPHONE */ }