about summary refs log tree commit diff
path: root/nptl/pthread_attr_destroy.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-05-15 22:48:42 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-05-20 20:28:24 +0200
commit3699ef99de0d69284cdd28c3cc5e1aa89e398443 (patch)
treedd28aaf7364caee047bd5c0a44731dcb1c3ebd7e /nptl/pthread_attr_destroy.c
parent07a73d521988a7fdea1bb3c3b5bbb2b23a0da2e1 (diff)
downloadglibc-3699ef99de0d69284cdd28c3cc5e1aa89e398443.tar.gz
glibc-3699ef99de0d69284cdd28c3cc5e1aa89e398443.tar.xz
glibc-3699ef99de0d69284cdd28c3cc5e1aa89e398443.zip
nptl: Make __pthread_attr_init, __pthread_attr_destroy available internally
pthread_attr_destroy needs to be a weak alias to avoid future
linknamespace failures.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nptl/pthread_attr_destroy.c')
-rw-r--r--nptl/pthread_attr_destroy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nptl/pthread_attr_destroy.c b/nptl/pthread_attr_destroy.c
index d20f209377..21f8026a2c 100644
--- a/nptl/pthread_attr_destroy.c
+++ b/nptl/pthread_attr_destroy.c
@@ -39,4 +39,5 @@ __pthread_attr_destroy (pthread_attr_t *attr)
 
   return 0;
 }
-strong_alias (__pthread_attr_destroy, pthread_attr_destroy)
+libc_hidden_def (__pthread_attr_destroy)
+weak_alias (__pthread_attr_destroy, pthread_attr_destroy)