Loading...
--- Libc/Libc-997.90.3/stdlib/FreeBSD/system.c
+++ Libc/Libc-825.26/stdlib/FreeBSD/system.c
@@ -54,6 +54,9 @@
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
@@ -72,7 +75,7 @@
if (__unix_conforming == 0)
__unix_conforming = 1;
#ifdef VARIANT_CANCELABLE
- pthread_testcancel();
+ _pthread_testcancel(pthread_self(), 1);
#endif /* VARIANT_CANCELABLE */
#endif /* __DARWIN_UNIX03 */