aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-01-07 10:11:18 +0100
committerMartin Ridgers <[email protected]>2022-01-07 10:16:52 +0100
commit693e0288fd3bb73daf596d5f592c64d22a71d1e6 (patch)
treef2b74297a4a369395cec2dea7c1960d6d735f15e /zencore/thread.cpp
parentA whitespace dance (diff)
downloadzen-693e0288fd3bb73daf596d5f592c64d22a71d1e6.tar.xz
zen-693e0288fd3bb73daf596d5f592c64d22a71d1e6.zip
Include POSIX headers on all platforms except Windows
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp
index 596549bb5..1d36ba192 100644
--- a/zencore/thread.cpp
+++ b/zencore/thread.cpp
@@ -12,13 +12,12 @@
# include <shellapi.h>
# include <Shlobj.h>
# include <zencore/windows.h>
-#elif ZEN_PLATFORM_LINUX
+#else
# include <chrono>
# include <condition_variable>
# include <mutex>
# include <fcntl.h>
-# include <mqueue.h>
# include <pthread.h>
# include <signal.h>
# include <sys/file.h>
@@ -27,6 +26,10 @@
# include <unistd.h>
#endif
+#if ZEN_PLATFORM_LINUX
+# include <mqueue.h>
+#endif
+
#include <thread>
ZEN_THIRD_PARTY_INCLUDES_START