We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5638e7 commit e7265acCopy full SHA for e7265ac
1 file changed
lib/Common/Core/SysInfo.cpp
@@ -11,7 +11,7 @@
11
#include <VersionHelpers.h>
12
#ifdef __APPLE__
13
#include <sys/sysctl.h> // sysctl*
14
-#elif defined(__linux__)
+#elif defined(__linux__) || defined(__FreeBSD__)
15
#include <unistd.h> // sysconf
16
#endif
17
// Initialization order
@@ -195,7 +195,7 @@ AutoSystemInfo::InitPhysicalProcessorCount()
195
countPhysicalProcessor = 1;
196
}
197
198
199
countPhysicalProcessor = sysconf(_SC_NPROCESSORS_ONLN);
200
#else
201
// implementation for __linux__ should work for some others.
0 commit comments