summaryrefslogtreecommitdiff
path: root/pthreadP.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-24 22:34:36 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-24 22:37:40 +0200
commit79e9d2b78ec0747a94731d45e0e5149269e96159 (patch)
treea68858fc2037b1a8b945c567312f678864c454e1 /pthreadP.h
parent05babf965ec39be7e1c8a7306ec1c60b1e614654 (diff)
Do not pthread_self when raise is called before libpthread init
* Versions (__pthread_threads): Add in GLIBC_PRIVATE. * pthreadP.h (__pthread_threads): Declare. * sysdeps/generic/raise.c (__pthread_threads): Make symbol weak. (raise): Check for __pthread_threads before calling __pthread_self.
Diffstat (limited to 'pthreadP.h')
-rw-r--r--pthreadP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pthreadP.h b/pthreadP.h
index f1fd625..97e3028 100644
--- a/pthreadP.h
+++ b/pthreadP.h
@@ -22,5 +22,6 @@
extern pthread_t __pthread_self (void);
extern int __pthread_kill (pthread_t threadid, int signo);
+extern struct __pthread **__pthread_threads;
#endif /* pthreadP.h */