diff options
author | Bert Belder <bertbelder@gmail.com> | 2013-05-14 17:13:42 -0700 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2013-05-14 17:13:42 -0700 |
commit | 79348256216ba0b3d6b9e0145ca27270152a6449 (patch) | |
tree | ce4f172ebe5c9a5b7321a244fc0bf5ffa8abcd0b /deps/uv/src/unix/darwin-proctitle.c | |
parent | 8886c6bf624e6627f68a10c5f4c6399bb5257cdf (diff) | |
download | android-node-v8-79348256216ba0b3d6b9e0145ca27270152a6449.tar.gz android-node-v8-79348256216ba0b3d6b9e0145ca27270152a6449.tar.bz2 android-node-v8-79348256216ba0b3d6b9e0145ca27270152a6449.zip |
uv: upgrade to v0.11.3
Diffstat (limited to 'deps/uv/src/unix/darwin-proctitle.c')
-rw-r--r-- | deps/uv/src/unix/darwin-proctitle.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/deps/uv/src/unix/darwin-proctitle.c b/deps/uv/src/unix/darwin-proctitle.c index e6c85905c0..c3171a6176 100644 --- a/deps/uv/src/unix/darwin-proctitle.c +++ b/deps/uv/src/unix/darwin-proctitle.c @@ -18,11 +18,18 @@ * IN THE SOFTWARE. */ -#include <CoreFoundation/CoreFoundation.h> -#include <ApplicationServices/ApplicationServices.h> +#include <TargetConditionals.h> + +#if !TARGET_OS_IPHONE +# include <CoreFoundation/CoreFoundation.h> +# include <ApplicationServices/ApplicationServices.h> +#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 */ } |