ecere/gui/XInterface: Fixed compile issue on Semaphore in FreeBSD
authorJerome St-Louis <jerome@ecere.com>
Wed, 9 Jul 2014 09:53:18 +0000 (05:53 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 9 Jul 2014 09:53:18 +0000 (05:53 -0400)
ecere/src/gui/drivers/XInterface.ec

index cd0e171..c5271ea 100644 (file)
@@ -22,6 +22,16 @@ default:
 #include <unistd.h>
 #include <sys/select.h>
 
+#if defined(__APPLE__)
+#define set _set
+#include <mach/mach.h>
+#include <mach/task.h>
+#include <mach/semaphore.h>
+#undef set
+#else
+#include <semaphore.h>
+#endif
+
 //#include <stdio.h>
 //#include <stdlib.h>
 //#include <string.h>