summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-09-02 19:37:56 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-09-02 19:37:56 +0200
commit7664981f51ca47b342965649d64c831dc84da59c (patch)
treec20d46199ec725e62ec1705756ae427640e29e92 /src/Root.cpp
parentMerge pull request #2446 from cuberite/asyncpathfinder (diff)
parentInclude signal.h jointly for POSIX systems (diff)
downloadcuberite-7664981f51ca47b342965649d64c831dc84da59c.tar
cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.gz
cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.bz2
cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.lz
cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.xz
cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.zst
cuberite-7664981f51ca47b342965649d64c831dc84da59c.zip
Diffstat (limited to 'src/Root.cpp')
-rw-r--r--src/Root.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index ba895a9d6..dc90671fb 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -25,13 +25,15 @@
#include <iostream>
-#ifdef _WIN32
+#if defined(_WIN32)
#include <psapi.h>
-#elif defined(__linux__)
- #include <fstream>
+#elif defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#include <signal.h>
-#elif defined(__APPLE__)
- #include <mach/mach.h>
+ #if defined(__linux__)
+ #include <fstream>
+ #elif defined(__APPLE__)
+ #include <mach/mach.h>
+ #endif
#endif