From: Samuel Thibault Date: Sat, 4 Jan 2020 16:21:22 +0000 (+0100) Subject: htl: Use dso_handle.h X-Git-Tag: glibc-2.31~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af7be496c9f1a1ca340ccd95152d46e8464490a1;p=thirdparty%2Fglibc.git htl: Use dso_handle.h --- diff --git a/sysdeps/htl/pt-atfork.c b/sysdeps/htl/pt-atfork.c index 677efdc70e5..4512fe72b6c 100644 --- a/sysdeps/htl/pt-atfork.c +++ b/sysdeps/htl/pt-atfork.c @@ -19,15 +19,12 @@ #include #include #include - -/* This is defined by newer gcc version unique for each module. */ -extern void *__dso_handle __attribute__ ((__weak__, __visibility__ ("hidden"))); +#include 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); }