fix the build on osx
authorGeoff Norton <grompf@sublimeintervention.com>
Wed, 24 Feb 2010 00:56:09 +0000 (00:56 -0000)
committerGeoff Norton <grompf@sublimeintervention.com>
Wed, 24 Feb 2010 00:56:09 +0000 (00:56 -0000)
svn path=/trunk/mono/; revision=152315

mono/utils/mono-semaphore.c

index be710d3af16dad8e57e359d9d65418c1dc94203f..dd60db469c043e8b34a1eab9e5c92165018b1b13 100644 (file)
@@ -14,7 +14,7 @@
 /* sem_* or semaphore_* functions in use */
 #  ifdef USE_MACH_SEMA
 #    define TIMESPEC mach_timespec_t
-#    define WAIT_BLOCK(a,b) semaphore_timedwait (a, b)
+#    define WAIT_BLOCK(a,b) semaphore_timedwait (*(a), *(b))
 #  else
 #    define TIMESPEC struct timespec
 #    define WAIT_BLOCK(a,b) sem_timedwait (a, b)