aboutsummaryrefslogtreecommitdiff
path: root/src/jthread/jsemaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/jthread/jsemaphore.h')
-rw-r--r--src/jthread/jsemaphore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jthread/jsemaphore.h b/src/jthread/jsemaphore.h
index 4ab006aea..32e9bc2f2 100644
--- a/src/jthread/jsemaphore.h
+++ b/src/jthread/jsemaphore.h
@@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <windows.h>
#include <assert.h>
#define MAX_SEMAPHORE_COUNT 1024
-#elif __MACH__
+#elif defined(__MACH__) && defined(__APPLE__)
#include <pthread.h>
#include <mach/mach.h>
#include <mach/task.h>
@@ -52,7 +52,7 @@ public:
private:
#if defined(WIN32)
HANDLE m_hSemaphore;
-#elif __MACH__
+#elif defined(__MACH__) && defined(__APPLE__)
semaphore_t m_semaphore;
int semcount;
#else