aboutsummaryrefslogtreecommitdiff
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
parentfix off-by-one bug in siglongjmp that caused unpredictable behavior (diff)
downloadgrovel-98acf04fc00cbded6169056f2cd541d31725c091.tar.gz
grovel-98acf04fc00cbded6169056f2cd541d31725c091.tar.xz
use weak aliases rather than function pointers to simplify some code
Diffstat (limited to '')
-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();
}