pkgsrc/devel/xulrunner/patches/patch-js_src_jsgc.cpp
ryoon be0ca39b05 Bump PKGREVISION
* Switch to newer patches,
  trillian.chruetertee.ch/freebsd-gecko/browser/branches/experimental/www/firefox/files/patch-bug753046
* Regen patches
2012-08-28 23:27:10 +00:00

19 lines
515 B
C++

$NetBSD: patch-js_src_jsgc.cpp,v 1.3 2012/08/28 23:27:10 ryoon Exp $
http://gnats.netbsd.org/46622
--- js/src/jsgc.cpp.orig 2012-08-24 22:55:40.000000000 +0000
+++ js/src/jsgc.cpp
@@ -2635,8 +2635,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;