27af90c8a6
XULRunner is a runtime environment for applications using the XML User Interface Language, XUL. It is the successor of the "Gecko" runtime environment. This package tracks 17.0.x extended support release.
19 lines
515 B
C++
19 lines
515 B
C++
$NetBSD: patch-js_src_jsgc.cpp,v 1.1 2013/01/10 16:17: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;
|