diff options
Diffstat (limited to 'lang/nodejs/patches/patch-deps_uv_src_unix_thread.c')
-rw-r--r-- | lang/nodejs/patches/patch-deps_uv_src_unix_thread.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/nodejs/patches/patch-deps_uv_src_unix_thread.c b/lang/nodejs/patches/patch-deps_uv_src_unix_thread.c new file mode 100644 index 00000000000..ce33d941a9f --- /dev/null +++ b/lang/nodejs/patches/patch-deps_uv_src_unix_thread.c @@ -0,0 +1,16 @@ +$NetBSD: patch-deps_uv_src_unix_thread.c,v 1.1 2013/05/22 15:17:07 mspo Exp $ + +Older NetBSD does not have pthread_condattr_setclock. +--- deps/uv/src/unix/thread.c.orig 2013-03-14 11:27:01.000000000 +0900 ++++ deps/uv/src/unix/thread.c 2013-03-14 11:45:57.000000000 +0900 +@@ -283,8 +283,10 @@ + if (pthread_condattr_init(&attr)) + return -1; + ++#if !(defined(__NetBSD__) && (__NetBSD_Version__ < 699001600)) + if (pthread_condattr_setclock(&attr, CLOCK_MONOTONIC)) + goto error2; ++#endif + + if (pthread_cond_init(cond, &attr)) + goto error2; |