diff options
author | isaacs <i@izs.me> | 2013-05-10 15:30:53 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-05-10 15:30:53 -0700 |
commit | fede68fd68924117a46420c1ecfe42fe681b4ae3 (patch) | |
tree | 6ffe361d1b2896a3fd89ec881f7622893c20f142 /deps/uv/src/unix/internal.h | |
parent | ec576235f1f4d7f5873cf3c0118b28c022740ffe (diff) | |
download | android-node-v8-fede68fd68924117a46420c1ecfe42fe681b4ae3.tar.gz android-node-v8-fede68fd68924117a46420c1ecfe42fe681b4ae3.tar.bz2 android-node-v8-fede68fd68924117a46420c1ecfe42fe681b4ae3.zip |
uv: Upgrade to 0.11.2
Diffstat (limited to 'deps/uv/src/unix/internal.h')
-rw-r--r-- | deps/uv/src/unix/internal.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/deps/uv/src/unix/internal.h b/deps/uv/src/unix/internal.h index 899c972b08..2f4d526a61 100644 --- a/deps/uv/src/unix/internal.h +++ b/deps/uv/src/unix/internal.h @@ -26,6 +26,7 @@ #include <assert.h> #include <stdlib.h> /* abort */ +#include <string.h> /* strrchr */ #if defined(__STRICT_ANSI__) # define inline __inline @@ -46,7 +47,7 @@ #endif #define STATIC_ASSERT(expr) \ - void uv__static_assert(int static_assert_failed[0 - !(expr)]) + void uv__static_assert(int static_assert_failed[1 - 2 * !(expr)]) #define ACCESS_ONCE(type, var) \ (*(volatile type*) &(var)) @@ -256,6 +257,18 @@ static void uv__update_time(uv_loop_t* loop) { loop->time = uv__hrtime() / 1000000; } +__attribute__((unused)) +static char* uv__basename_r(const char* path) { + char* s; + + s = strrchr(path, '/'); + if (s == NULL) + return (char*) path; + + return s + 1; +} + + #ifdef HAVE_DTRACE #include "uv-dtrace.h" #else |