]> git.saurik.com Git - apple/libc.git/blobdiff - stdlib/FreeBSD/getenv.c
Libc-1439.100.3.tar.gz
[apple/libc.git] / stdlib / FreeBSD / getenv.c
index bde7421158357a1012895caa2aff28dcfe2054ca..c012578ad46397d6fc448f3e67ca030638cde988 100644 (file)
@@ -83,21 +83,13 @@ static os_unfair_lock __environ_lock_obj = OS_UNFAIR_LOCK_INIT;
 __private_extern__ void
 __environ_lock(void)
 {
 __private_extern__ void
 __environ_lock(void)
 {
-#if TARGET_OS_IOS && !TARGET_OS_SIMULATOR
-       os_unfair_lock_lock_with_options_4Libc(
+       os_unfair_lock_lock_with_options(
                        &__environ_lock_obj, OS_UNFAIR_LOCK_DATA_SYNCHRONIZATION);
                        &__environ_lock_obj, OS_UNFAIR_LOCK_DATA_SYNCHRONIZATION);
-#else // TARGET_OS_IOS && !TARGET_OS_SIMULATOR
-       os_unfair_lock_lock(&__environ_lock_obj);
-#endif // TARGET_OS_IOS && !TARGET_OS_SIMULATOR
 }
 __private_extern__ void
 __environ_unlock(void)
 {
 }
 __private_extern__ void
 __environ_unlock(void)
 {
-#if TARGET_OS_IOS && !TARGET_OS_SIMULATOR
-       os_unfair_lock_unlock_4Libc(&__environ_lock_obj);
-#else // TARGET_OS_IOS && !TARGET_OS_SIMULATOR
        os_unfair_lock_unlock(&__environ_lock_obj);
        os_unfair_lock_unlock(&__environ_lock_obj);
-#endif // TARGET_OS_IOS && !TARGET_OS_SIMULATOR
 }
 __private_extern__ void
 __environ_lock_fork_child(void)
 }
 __private_extern__ void
 __environ_lock_fork_child(void)