diff options
author | isaacs <i@izs.me> | 2012-07-17 11:40:13 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-07-17 11:40:13 -0700 |
commit | 7397ab2cf13555a9f0aa3ccc50f9e76fc54fdcec (patch) | |
tree | 22b9d35e4733e1c7835267bee41be0cdbdc32bbd /deps/uv/include | |
parent | c383befd257f451a12ccd4454784941f1bb9c41a (diff) | |
download | node-new-7397ab2cf13555a9f0aa3ccc50f9e76fc54fdcec.tar.gz |
uv: Upgrade to a9f6f06
Diffstat (limited to 'deps/uv/include')
-rw-r--r-- | deps/uv/include/uv-private/uv-unix.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/deps/uv/include/uv-private/uv-unix.h b/deps/uv/include/uv-private/uv-unix.h index da185e29da..7b86c0ea6d 100644 --- a/deps/uv/include/uv-private/uv-unix.h +++ b/deps/uv/include/uv-private/uv-unix.h @@ -40,10 +40,17 @@ #include <termios.h> #include <pwd.h> -#include <semaphore.h> #include <pthread.h> #include <signal.h> +#if defined(__APPLE__) && defined(__MACH__) +# include <mach/mach.h> +# include <mach/task.h> +# include <mach/semaphore.h> +#else +# include <semaphore.h> +#endif + #if __sun # include <sys/port.h> # include <port.h> @@ -67,7 +74,11 @@ typedef pthread_once_t uv_once_t; typedef pthread_t uv_thread_t; typedef pthread_mutex_t uv_mutex_t; typedef pthread_rwlock_t uv_rwlock_t; +#if defined(__APPLE__) && defined(__MACH__) +typedef semaphore_t uv_sem_t; +#else typedef sem_t uv_sem_t; +#endif /* Platform-specific definitions for uv_spawn support. */ typedef gid_t uv_gid_t; |