Ticket #54068: patch_js_src_jsgc.cpp.diff
File patch_js_src_jsgc.cpp.diff, 696 bytes (added by ballapete (Peter "Pete" Dyballa), 8 years ago) |
---|
-
js/src/jsgc.cpp
old new 97 97 # include "jswin.h" 98 98 #else 99 99 # include <unistd.h> 100 # if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 101 # include <sys/sysctl.h> 102 # endif 100 103 #endif 101 104 102 105 using namespace mozilla; … … 2864 2867 SYSTEM_INFO sysinfo; 2865 2868 GetSystemInfo(&sysinfo); 2866 2869 ncpus = unsigned(sysinfo.dwNumberOfProcessors); 2870 # elif __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 2871 long n = sysconf(HW_NCPU); 2872 ncpus = (n > 0) ? unsigned(n) : 1; 2867 2873 # else 2868 2874 long n = sysconf(_SC_NPROCESSORS_ONLN); 2869 2875 ncpus = (n > 0) ? unsigned(n) : 1;