diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-07-14 21:19:48 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-07-14 21:19:48 +0000 |
commit | 9be76a0af7b2117fadccc70145318201eb7eb3b6 (patch) | |
tree | f640533a22d2e4f944fe357b89c735b89ad53a31 /devel | |
parent | 8c0210d71ac9d67f8683b0c73a8445aec5e1f8b4 (diff) | |
download | pkgsrc-9be76a0af7b2117fadccc70145318201eb7eb3b6.tar.gz |
Fix PR pkg/46622
* Fix build on NetBSD 4
Diffstat (limited to 'devel')
-rw-r--r-- | devel/xulrunner/distinfo | 3 | ||||
-rw-r--r-- | devel/xulrunner/patches/patch-js_src_jsgc.cpp | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/devel/xulrunner/distinfo b/devel/xulrunner/distinfo index b16224d7234..a347a6df0ae 100644 --- a/devel/xulrunner/distinfo +++ b/devel/xulrunner/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.71 2012/06/05 18:09:21 ryoon Exp $ +$NetBSD: distinfo,v 1.72 2012/07/14 21:19:48 ryoon Exp $ SHA1 (firefox-13.0.source.tar.bz2) = f90608874a54883b9fbb90b8d6dd3dc75a305572 RMD160 (firefox-13.0.source.tar.bz2) = 8dbb9ef17fb5a47f3ae53ae9626e7668116111c7 @@ -58,6 +58,7 @@ SHA1 (patch-ipc_chromium_src_chrome_common_transport__dib.h) = e61c724196bd2d2c8 SHA1 (patch-ipc_glue_GeckoChildProcessHost.cpp) = 0e22486a1df8f5a726f675cd6055f8a455d16d9d SHA1 (patch-js_src_config_rules.mk) = 7840a67f38d9568c5c6b94a0543b87e694e47ff7 SHA1 (patch-js_src_jscpucfg.h) = 79829d8e9fa2c3dcba07d1d90a6cf1f635791d97 +SHA1 (patch-js_src_jsgc.cpp) = 3ee765a5bdbc50f6d3e73d8c5a4ad202cb1e9453 SHA1 (patch-js_src_methodjit_MethodJIT.cpp) = aec956a2cb35ce4dffb87fded52b8436781dab85 SHA1 (patch-js_src_yarr_pcre_pcre.h) = cf86b885ac222854a62c6ab98dad338bd76cd7d1 SHA1 (patch-js_xpconnect_src_Makefile.in) = 2e72f3c67257d599737e1607d35979d7c1959021 diff --git a/devel/xulrunner/patches/patch-js_src_jsgc.cpp b/devel/xulrunner/patches/patch-js_src_jsgc.cpp new file mode 100644 index 00000000000..45cbb7447be --- /dev/null +++ b/devel/xulrunner/patches/patch-js_src_jsgc.cpp @@ -0,0 +1,19 @@ +$NetBSD: patch-js_src_jsgc.cpp,v 1.1 2012/07/14 21:19:48 ryoon Exp $ + +http://gnats.netbsd.org/46622 + +--- js/src/jsgc.cpp.orig 2012-06-01 12:04:04.000000000 +0000 ++++ js/src/jsgc.cpp +@@ -2636,8 +2636,12 @@ GetCPUCount() + GetSystemInfo(&sysinfo); + ncpus = unsigned(sysinfo.dwNumberOfProcessors); + # else ++# ifdef _SC_NPROCESSORS_ONLN + long n = sysconf(_SC_NPROCESSORS_ONLN); + ncpus = (n > 0) ? unsigned(n) : 1; ++# else ++ ncpus = 1; ++# endif + # endif + } + return ncpus; |