about summary refs log tree commit diff
path: root/sysdeps/htl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-04 17:21:22 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-04 17:25:08 +0100
commitaf7be496c9f1a1ca340ccd95152d46e8464490a1 (patch)
tree16fb12bdfa63950c0aee37565f3aa64325d1d7ba /sysdeps/htl
parent92b963699aae2da1e25f47edc7a0408bf3aee4d2 (diff)
downloadglibc-af7be496c9f1a1ca340ccd95152d46e8464490a1.tar.gz
glibc-af7be496c9f1a1ca340ccd95152d46e8464490a1.tar.xz
glibc-af7be496c9f1a1ca340ccd95152d46e8464490a1.zip
htl: Use dso_handle.h
Diffstat (limited to 'sysdeps/htl')
-rw-r--r--sysdeps/htl/pt-atfork.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/htl/pt-atfork.c b/sysdeps/htl/pt-atfork.c
index 677efdc70e..4512fe72b6 100644
--- a/sysdeps/htl/pt-atfork.c
+++ b/sysdeps/htl/pt-atfork.c
@@ -19,15 +19,12 @@
 #include <pthread.h>
 #include <pt-internal.h>
 #include <fork.h>
-
-/* This is defined by newer gcc version unique for each module.  */
-extern void *__dso_handle __attribute__ ((__weak__, __visibility__ ("hidden")));
+#include <dso_handle.h>
 
 int
 pthread_atfork (void (*prepare) (void),
 		void (*parent) (void),
 		void (*child) (void))
 {
-  return __register_atfork (prepare, parent, child,
-			    &__dso_handle == NULL ? NULL : __dso_handle);
+  return __register_atfork (prepare, parent, child, __dso_handle);
 }