* mono-semaphore.h:
* mono-semaphore.c: use io-layer wait functions in OSX.
svn path=/trunk/mono/; revision=160310
+2010-07-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * mono-semaphore.h:
+ * mono-semaphore.c: use io-layer wait functions in OSX.
+
2010-07-02 Michael Hutchinson <mhutchinson@novell.com>
* mono-compiler.h: Add MONO_THREAD_VAR_OFFSET macro for s390x.
#include <unistd.h>
#endif
-#if (defined(HAVE_SEMAPHORE_H) || defined(USE_MACH_SEMA))
+#if (defined(HAVE_SEMAPHORE_H) || defined(USE_MACH_SEMA)) && !defined(__APPLE__)
/* sem_* or semaphore_* functions in use */
# ifdef USE_MACH_SEMA
# define TIMESPEC mach_timespec_t
#endif
#include <mono/io-layer/io-layer.h>
-#if defined (HAVE_SEMAPHORE_H) || defined (USE_MACH_SEMA)
+#if (defined(HAVE_SEMAPHORE_H) || defined(USE_MACH_SEMA)) && !defined(__APPLE__)
# define MONO_HAS_SEMAPHORES
# if defined (USE_MACH_SEMA)