* src/threads/posix/thread-posix.hpp: Removed public semaphore interface.
[cacao.git] / src / threads / posix / thread-posix.cpp
index 6a0e54adce134c6c7828b12e4a4797b93288f34e..031823ee561e9a7a6a3c2b3c62b4b138b43a3a50 100644 (file)
 
 #include "vm/jit/asmpart.h"
 
-#if !defined(__DARWIN__)
+#if defined(__DARWIN__)
+# include <mach/mach.h>
+
+typedef struct {
+       Mutex* mutex;
+       Condition* cond;
+       int value;
+} sem_t;
+
+#else
 # include <semaphore.h>
 #endif