summaryrefslogtreecommitdiff
path: root/source/api_wrappers/linux/CSemaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/api_wrappers/linux/CSemaphore.h')
-rw-r--r--source/api_wrappers/linux/CSemaphore.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/api_wrappers/linux/CSemaphore.h b/source/api_wrappers/linux/CSemaphore.h
index 3d68b63..32d8ca2 100644
--- a/source/api_wrappers/linux/CSemaphore.h
+++ b/source/api_wrappers/linux/CSemaphore.h
@@ -19,7 +19,12 @@ public:
DWORD Wait(DWORD timeout = INFINITE);
private:
+#if defined(__APPLE__)
sem_t *m_semaphore;
+#elif defined(__linux__)
+ sem_t m_semaphore;
+#endif
+
};
#endif /* _CSEMAPHORE_H */