]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
htl: Use dso_handle.h
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 4 Jan 2020 16:21:22 +0000 (17:21 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 4 Jan 2020 16:25:08 +0000 (17:25 +0100)
sysdeps/htl/pt-atfork.c

index 677efdc70e5f412457e8dcf2561ee87ab1513057..4512fe72b6c638a7f88466551e5a9ec2f5af6e00 100644 (file)
 #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);
 }