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