aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common/thread.cpp
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-20 22:45:15 +0100
committerGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-28 00:36:53 +0100
commit2a36edfd86cc15829b113466845ccab759731793 (patch)
tree21cef3e088f5906df99f5d4832ed92df03723d12 /src/common/thread.cpp
parent13e6876463078ee0597b3677a26ccaa2a5ff8b35 (diff)
Common: Cleanup thread includes.
Diffstat (limited to 'src/common/thread.cpp')
-rw-r--r--src/common/thread.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index 8bf00585..7bbf080b 100644
--- a/src/common/thread.cpp
+++ b/src/common/thread.cpp
@@ -5,11 +5,20 @@
#include "common/thread.h"
#ifdef __APPLE__
-#include <mach/mach.h>
-#elif defined(BSD4_4) || defined(__OpenBSD__)
-#include <pthread_np.h>
+ #include <mach/mach.h>
#elif defined(_WIN32)
-#include <Windows.h>
+ #include <Windows.h>
+#else
+ #if defined(BSD4_4) || defined(__OpenBSD__)
+ #include <pthread_np.h>
+ #else
+ #include <pthread.h>
+ #endif
+ #include <sched.h>
+#endif
+
+#ifndef _WIN32
+ #include <unistd.h>
#endif
namespace Common