diff options
author | joerg <joerg> | 2015-05-14 20:36:36 +0000 |
---|---|---|
committer | joerg <joerg> | 2015-05-14 20:36:36 +0000 |
commit | 7479dd3ffcfa0e206d84a969066a4575f51635fc (patch) | |
tree | 11c10fedf8463574731eb17109c4b754a2732e4d /lang | |
parent | b5a9fadb7035fabe7349e9c3e4eac864d6226538 (diff) | |
download | pkgsrc-7479dd3ffcfa0e206d84a969066a4575f51635fc.tar.gz |
Fix build on !NetBSD.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/nodejs/distinfo | 4 | ||||
-rw-r--r-- | lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lang/nodejs/distinfo b/lang/nodejs/distinfo index d2db8585434..95bdf26494e 100644 --- a/lang/nodejs/distinfo +++ b/lang/nodejs/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.27 2015/05/14 17:09:29 bad Exp $ +$NetBSD: distinfo,v 1.28 2015/05/14 20:36:36 joerg Exp $ SHA1 (node-v0.12.2.tar.gz) = a969f17a0a6c9238584f8946d96e8d39be8eb957 RMD160 (node-v0.12.2.tar.gz) = f486884bcb4f4f64ef9b85ac2be5006baafee19f @@ -8,7 +8,7 @@ SHA1 (patch-deps_cares_cares.gyp) = 2235eb44bc984fa2e745fdf1786f1ae6de6ef80f SHA1 (patch-deps_npm_node__modules_node-gyp_gyp_pylib_gyp_generator_make.py) = 78d6ddd37ae30e869e0da666a78baad86a638c50 SHA1 (patch-deps_uv_common.gypi) = af1c707cbc02a4aeccebebf6691d5a8680646a0d SHA1 (patch-deps_v8_src_base_platform_platform-posix.cc) = aae5e1649a3ea876e724cec95731989fb01ff008 -SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = 7515ea52573e3d9cfae178b049f5ed225d9d73ec +SHA1 (patch-deps_v8_src_base_platform_semaphore.cc) = a209357b885ef86540bce1b0563e8bfe90213a4a SHA1 (patch-deps_v8_tools_gyp_v8.gyp) = a7e13e7ef8cc078a812a1f6f37da71c84eedaf6f SHA1 (patch-deps_v8_tools_run-llprof.sh) = 39aa3faf77492ef8dd35b411b7b0e4605b469af3 SHA1 (patch-src_cares__wrap.cc) = d9510afd0cd4b0156a604d9197d9f97d6e3b291f diff --git a/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc b/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc index 76a7552ba7c..31ef2842f5c 100644 --- a/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc +++ b/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc @@ -1,4 +1,4 @@ -$NetBSD: patch-deps_v8_src_base_platform_semaphore.cc,v 1.1 2015/05/14 17:09:29 bad Exp $ +$NetBSD: patch-deps_v8_src_base_platform_semaphore.cc,v 1.2 2015/05/14 20:36:37 joerg Exp $ Work around lack of sem_timedwait(3) in NetBSD < 6.99.4. Adapted from d4f11c0cf476dd854eaebec1cbacb1afc7bea18e of the Chromium V8 sources. @@ -23,7 +23,7 @@ Adapted from d4f11c0cf476dd854eaebec1cbacb1afc7bea18e of the Chromium V8 sources bool Semaphore::WaitFor(const TimeDelta& rel_time) { -+#if V8_OS_NACL || (V8_OS_NETBSD && !__NetBSD_Prereq__(6,99,4)) ++#if V8_OS_NACL || (V8_OS_NETBSD && __NetBSD_Version__ - 0 > 699000400) + // PNaCL and older NetBSD doesn't support sem_timedwait, do ugly busy waiting. + ElapsedTimer timer; + timer.Start(); |