Index: util/synchronization/semaphore.h |
diff --git a/util/synchronization/semaphore.h b/util/synchronization/semaphore.h |
index 4e36f8ccb83edfda6cee29a9b115801410a86c40..8cff205da8682476c32dc7994def7f5bb490d956 100644 |
--- a/util/synchronization/semaphore.h |
+++ b/util/synchronization/semaphore.h |
@@ -19,6 +19,8 @@ |
#if defined(OS_MACOSX) |
#include <dispatch/dispatch.h> |
+#elif defined(OS_WIN) |
+#include <windows.h> |
#else |
#include <semaphore.h> |
#endif |
@@ -53,6 +55,8 @@ class Semaphore { |
private: |
#if defined(OS_MACOSX) |
dispatch_semaphore_t semaphore_; |
+#elif defined(OS_WIN) |
+ HANDLE semaphore_; |
#else |
sem_t semaphore_; |
#endif |