From a877b0eca3d59f7f8cd126047c0e899df6018858 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Fri, 17 Aug 2018 12:29:03 +0200 Subject: Revert "build: Link to libpthread, if pthread_atfork() needs to be used" This reverts commit 541d79cb651cfd3238b9aa41fce70208df8e9496. --- common/library.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'common') diff --git a/common/library.c b/common/library.c index 73a008c..b72465b 100644 --- a/common/library.c +++ b/common/library.c @@ -145,14 +145,12 @@ extern int __register_atfork (void (*prepare) (void), void (*parent) (void), #ifdef HAVE___REGISTER_ATFORK -extern void *__dso_handle; - -#define p11_register_atfork(a,b,c) \ - (__register_atfork((a),(b),(c),__dso_handle)) +#define p11_register_atfork(a,b,c,d) \ + (__register_atfork((a),(b),(c),(d))) #else -#define p11_register_atfork(a,b,c) \ +#define p11_register_atfork(a,b,c,d) \ (pthread_atfork((a),(b),(c))) #endif /* HAVE___REGISTER_ATFORK */ @@ -179,7 +177,7 @@ p11_library_init_impl (void) p11_message_locale = newlocale (LC_ALL_MASK, "POSIX", (locale_t) 0); #endif - p11_register_atfork (NULL, NULL, count_forks); + p11_register_atfork (NULL, NULL, count_forks, NULL); } void -- cgit v1.1