diff options
author | Saúl Ibarra Corretgé <saghul@gmail.com> | 2015-01-28 22:14:19 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-01-28 22:47:38 +0100 |
commit | 097fde7129a3acc660beb372cecd9daf1164a7f2 (patch) | |
tree | 2bb1b2fb58b314f739df4ac91b0d60bee9c21277 /deps/uv/src/unix/darwin-proctitle.c | |
parent | 6ad236c9b6a344a88ec2f1f173d5f920984b77b7 (diff) | |
download | android-node-v8-097fde7129a3acc660beb372cecd9daf1164a7f2.tar.gz android-node-v8-097fde7129a3acc660beb372cecd9daf1164a7f2.tar.bz2 android-node-v8-097fde7129a3acc660beb372cecd9daf1164a7f2.zip |
deps: update libuv to 1.3.0
PR-URL: https://github.com/iojs/io.js/pull/644
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/uv/src/unix/darwin-proctitle.c')
-rw-r--r-- | deps/uv/src/unix/darwin-proctitle.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/uv/src/unix/darwin-proctitle.c b/deps/uv/src/unix/darwin-proctitle.c index b7267caa99..1142311609 100644 --- a/deps/uv/src/unix/darwin-proctitle.c +++ b/deps/uv/src/unix/darwin-proctitle.c @@ -21,6 +21,7 @@ #include <dlfcn.h> #include <errno.h> #include <stdlib.h> +#include <string.h> #include <TargetConditionals.h> @@ -36,7 +37,9 @@ static int uv__pthread_setname_np(const char* name) { int err; /* pthread_setname_np() first appeared in OS X 10.6 and iOS 3.2. */ - *(void **)(&dynamic_pthread_setname_np) = dlsym(RTLD_DEFAULT, "pthread_setname_np"); + *(void **)(&dynamic_pthread_setname_np) = + dlsym(RTLD_DEFAULT, "pthread_setname_np"); + if (dynamic_pthread_setname_np == NULL) return -ENOSYS; |