diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-08-06 20:09:51 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-08-06 20:09:51 -0400 |
commit | 98acf04fc00cbded6169056f2cd541d31725c091 (patch) | |
tree | f792014c7cbc4deee8c3de9b511d9e7329f2bf0d /src/thread/pthread_testcancel.c | |
parent | 338b663ddb64ecf8a62ad0d1020a29587e0ca81b (diff) | |
download | musl-98acf04fc00cbded6169056f2cd541d31725c091.tar.gz musl-98acf04fc00cbded6169056f2cd541d31725c091.tar.bz2 musl-98acf04fc00cbded6169056f2cd541d31725c091.tar.xz musl-98acf04fc00cbded6169056f2cd541d31725c091.zip |
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.c | 4 |
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(); } |