diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2006-03-13 00:59:51 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2006-03-13 00:59:51 +0000 |
| commit | e62165c8b0f7d6452c0033127a0fd8ad1d9e34d3 (patch) | |
| tree | 0ff38bc0c45640883ff06a668902f099c9ff8641 /lib/libpthread/thread/thr_spec.c | |
| parent | 855761d5db4349e3c5b6d89c8a3cd31e6988f523 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_spec.c')
| -rw-r--r-- | lib/libpthread/thread/thr_spec.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_spec.c b/lib/libpthread/thread/thr_spec.c index 6c2b6367c651..f6e8861ec9f1 100644 --- a/lib/libpthread/thread/thr_spec.c +++ b/lib/libpthread/thread/thr_spec.c @@ -36,11 +36,27 @@ #include <string.h> #include <errno.h> #include <pthread.h> + #include "thr_private.h" -/* Static variables: */ + struct pthread_key _thread_keytable[PTHREAD_KEYS_MAX]; +/* + * XXX - This breaks the linker if LT10_COMPAT_DEFAULT doesn't + * also include a weak reference to the default symbol. + */ +LT10_COMPAT_PRIVATE(_thread_keytable); + +LT10_COMPAT_PRIVATE(_pthread_key_create); +LT10_COMPAT_DEFAULT(pthread_key_create); +LT10_COMPAT_PRIVATE(_pthread_key_delete); +LT10_COMPAT_DEFAULT(pthread_key_delete); +LT10_COMPAT_PRIVATE(_pthread_getspecific); +LT10_COMPAT_DEFAULT(pthread_getspecific); +LT10_COMPAT_PRIVATE(_pthread_setspecific); +LT10_COMPAT_DEFAULT(pthread_setspecific); + __weak_reference(_pthread_key_create, pthread_key_create); __weak_reference(_pthread_key_delete, pthread_key_delete); __weak_reference(_pthread_getspecific, pthread_getspecific); |
