diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-08-20 21:09:10 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-08-20 21:09:10 +0200 |
commit | bd3ccc49712dc44911bf0913ca49815f59747d6f (patch) | |
tree | bdaf0ddafd022a331e81ed275d9935d636984ef5 | |
parent | f36cd8dcb352f7978e9fceb1b512e08a4e296049 (diff) |
Add __pthread_key_create alias
Some versions of std::thread use it to detect the presence of libpthread (don't
ask why)
* sysdeps/hurd/pt-key-create.c (pthread_key_create): Rename to
__pthread_key_create.
(pthread_key_create): Define as strong alias of __pthread_key_create.
* Versions (libpthread): Add __pthread_key_create.
-rw-r--r-- | Versions | 1 | ||||
-rw-r--r-- | sysdeps/hurd/pt-key-create.c | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -88,6 +88,7 @@ libpthread { pthread_join; pthread_key_create; pthread_key_delete; + __pthread_key_create; pthread_kill; diff --git a/sysdeps/hurd/pt-key-create.c b/sysdeps/hurd/pt-key-create.c index b3e0141..42c7c85 100644 --- a/sysdeps/hurd/pt-key-create.c +++ b/sysdeps/hurd/pt-key-create.c @@ -31,7 +31,7 @@ int __pthread_key_count; int __pthread_key_invalid_count; int -pthread_key_create (pthread_key_t *key, void (*destructor) (void *)) +__pthread_key_create (pthread_key_t *key, void (*destructor) (void *)) { /* Where to look for the next key slot. */ static int index; @@ -107,3 +107,5 @@ pthread_key_create (pthread_key_t *key, void (*destructor) (void *)) __pthread_mutex_unlock (&__pthread_key_lock); return 0; } +strong_alias (__pthread_key_create, pthread_key_create) +hidden_def (__pthread_key_create) |