summaryrefslogtreecommitdiffstats
path: root/base/platform_thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/platform_thread.h')
-rw-r--r--base/platform_thread.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/platform_thread.h b/base/platform_thread.h
index 4a2d507..f641f42 100644
--- a/base/platform_thread.h
+++ b/base/platform_thread.h
@@ -22,12 +22,12 @@ typedef void* PlatformThreadHandle; // HANDLE
#elif defined(OS_POSIX)
#include <pthread.h>
typedef pthread_t PlatformThreadHandle;
-#if defined(OS_LINUX)
-#include <unistd.h>
-typedef pid_t PlatformThreadId;
-#elif defined(OS_MACOSX)
+#if defined(OS_MACOSX)
#include <mach/mach.h>
typedef mach_port_t PlatformThreadId;
+#else // OS_POSIX && !OS_MACOSX
+#include <unistd.h>
+typedef pid_t PlatformThreadId;
#endif
#endif