]> git.saurik.com Git - apple/libc.git/blobdiff - gen/nanosleep.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / gen / nanosleep.c
index 6cad277cadc1ea18ef75df544f0c2bfa1fde53ff..934707eefb81ddd96a735d693264d510bd3919e2 100644 (file)
@@ -36,7 +36,7 @@
 #include <mach/mach.h>
 #include <mach/mach_error.h>
 
-#if !defined(BUILDING_VARIANT) && !TARGET_IPHONE_SIMULATOR
+#if !defined(BUILDING_VARIANT)
 semaphore_t    clock_sem = MACH_PORT_NULL;
 mach_port_t    clock_port = MACH_PORT_NULL;
 
@@ -52,7 +52,7 @@ void _init_clock_port(void) {
                abort();
        }
        
-       kr = semaphore_create(mach_task_self_, &clock_sem, SYNC_POLICY_FIFO, 0);
+       kr = semaphore_create(mach_task_self(), &clock_sem, SYNC_POLICY_FIFO, 0);
        if (kr != KERN_SUCCESS) {
                abort();
        }