diff options
Diffstat (limited to '')
| -rw-r--r-- | src/common/thread.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp index 8bf005857..7bbf080bc 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp | |||
| @@ -5,11 +5,20 @@ | |||
| 5 | #include "common/thread.h" | 5 | #include "common/thread.h" |
| 6 | 6 | ||
| 7 | #ifdef __APPLE__ | 7 | #ifdef __APPLE__ |
| 8 | #include <mach/mach.h> | 8 | #include <mach/mach.h> |
| 9 | #elif defined(BSD4_4) || defined(__OpenBSD__) | ||
| 10 | #include <pthread_np.h> | ||
| 11 | #elif defined(_WIN32) | 9 | #elif defined(_WIN32) |
| 12 | #include <Windows.h> | 10 | #include <Windows.h> |
| 11 | #else | ||
| 12 | #if defined(BSD4_4) || defined(__OpenBSD__) | ||
| 13 | #include <pthread_np.h> | ||
| 14 | #else | ||
| 15 | #include <pthread.h> | ||
| 16 | #endif | ||
| 17 | #include <sched.h> | ||
| 18 | #endif | ||
| 19 | |||
| 20 | #ifndef _WIN32 | ||
| 21 | #include <unistd.h> | ||
| 13 | #endif | 22 | #endif |
| 14 | 23 | ||
| 15 | namespace Common | 24 | namespace Common |