summaryrefslogtreecommitdiff
path: root/src/thread/pthread_testcancel.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-08-06 20:09:51 -0400
committerRich Felker <dalias@aerifal.cx>2011-08-06 20:09:51 -0400
commit98acf04fc00cbded6169056f2cd541d31725c091 (patch)
treef792014c7cbc4deee8c3de9b511d9e7329f2bf0d /src/thread/pthread_testcancel.c
parent338b663ddb64ecf8a62ad0d1020a29587e0ca81b (diff)
downloadmusl-98acf04fc00cbded6169056f2cd541d31725c091.tar.gz
use weak aliases rather than function pointers to simplify some code
Diffstat (limited to 'src/thread/pthread_testcancel.c')
-rw-r--r--src/thread/pthread_testcancel.c4
1 files changed, 3 insertions, 1 deletions
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();
}