[hurd,commited] htl: Use dso_handle.h
diff mbox series

Message ID 20200104163226.890925-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series
  • [hurd,commited] htl: Use dso_handle.h
Related show

Commit Message

Samuel Thibault Jan. 4, 2020, 4:32 p.m. UTC
---
 sysdeps/htl/pt-atfork.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

Patch
diff mbox series

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);
 }