summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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