summaryrefslogtreecommitdiffstats
path: root/src/common/thread.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-20 23:45:15 +0200
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-06-28 01:36:53 +0200
commit2a36edfd86cc15829b113466845ccab759731793 (patch)
tree21cef3e088f5906df99f5d4832ed92df03723d12 /src/common/thread.cpp
parentCommon: Fix string_util includes. (diff)
downloadyuzu-2a36edfd86cc15829b113466845ccab759731793.tar
yuzu-2a36edfd86cc15829b113466845ccab759731793.tar.gz
yuzu-2a36edfd86cc15829b113466845ccab759731793.tar.bz2
yuzu-2a36edfd86cc15829b113466845ccab759731793.tar.lz
yuzu-2a36edfd86cc15829b113466845ccab759731793.tar.xz
yuzu-2a36edfd86cc15829b113466845ccab759731793.tar.zst
yuzu-2a36edfd86cc15829b113466845ccab759731793.zip
Diffstat (limited to '')
-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 8bf005857..7bbf080bc 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