From 98acf04fc00cbded6169056f2cd541d31725c091 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 6 Aug 2011 20:09:51 -0400 Subject: use weak aliases rather than function pointers to simplify some code --- src/thread/pthread_testcancel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/thread/pthread_testcancel.c') diff --git a/src/thread/pthread_testcancel.c b/src/thread/pthread_testcancel.c index c6b250b2..33238c0f 100644 --- a/src/thread/pthread_testcancel.c +++ b/src/thread/pthread_testcancel.c @@ -1,6 +1,8 @@ #include "pthread_impl.h" +void __testcancel(void); + void pthread_testcancel() { - if (libc.testcancel) libc.testcancel(); + __testcancel(); } -- cgit v1.2.1