]> git.saurik.com Git - apple/libc.git/blobdiff - stdlib/FreeBSD/system.c
Libc-1044.40.1.tar.gz
[apple/libc.git] / stdlib / FreeBSD / system.c
index c2a56c7c51cc30dce5e5fd2e262807a3e86195ed..3e99468ac51118ace7df8ebce2893bbd008957a2 100644 (file)
@@ -54,9 +54,6 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/system.c,v 1.11 2007/01/09 00:28:10 imp
 
 static pthread_mutex_t __systemfn_mutex = PTHREAD_MUTEX_INITIALIZER;
 extern int __unix_conforming;
-#ifdef VARIANT_CANCELABLE
-extern void _pthread_testcancel(pthread_t thread, int isconforming);
-#endif /* VARIANT_CANCELABLE */
 #endif /* __DARWIN_UNIX03 */
 
 int
@@ -75,7 +72,7 @@ __system(command)
        if (__unix_conforming == 0)
                __unix_conforming = 1;
 #ifdef VARIANT_CANCELABLE
-       _pthread_testcancel(pthread_self(), 1);
+       pthread_testcancel();
 #endif /* VARIANT_CANCELABLE */
 #endif /* __DARWIN_UNIX03 */