Index: src/platform-openbsd.cc |
diff --git a/src/platform-openbsd.cc b/src/platform-openbsd.cc |
index 7fdd5b270d5a2df09f52b23c9ca87c2c2d5dbf19..66eac22aa50e5deae0dd2ef2bec3d4e7ff7b8770 100644 |
--- a/src/platform-openbsd.cc |
+++ b/src/platform-openbsd.cc |
@@ -204,6 +204,11 @@ void OS::Sleep(int milliseconds) { |
} |
+int OS::NumberOfCores() { |
+ return sysconf(_SC_NPROCESSORS_ONLN); |
+} |
+ |
+ |
void OS::Abort() { |
// Redirect to std abort to signal abnormal program termination. |
abort(); |