diff options
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/thread-m.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/malloc/thread-m.h b/malloc/thread-m.h index 71409ebc0e..da8bbf36f8 100644 --- a/malloc/thread-m.h +++ b/malloc/thread-m.h @@ -77,24 +77,13 @@ extern void *__dso_handle __attribute__ ((__weak__)); #include <fork.h> -#ifdef HAVE_register_atfork_malloc -# ifdef SHARED -# define thread_atfork(prepare, parent, child) \ - __register_atfork_malloc (prepare, parent, child, __dso_handle) -# else -# define thread_atfork(prepare, parent, child) \ - __register_atfork_malloc (prepare, parent, child, \ - &__dso_handle == NULL ? NULL : __dso_handle) -# endif -#else -# ifdef SHARED -# define thread_atfork(prepare, parent, child) \ +#ifdef SHARED +# define thread_atfork(prepare, parent, child) \ __register_atfork (prepare, parent, child, __dso_handle) -# else -# define thread_atfork(prepare, parent, child) \ +#else +# define thread_atfork(prepare, parent, child) \ __register_atfork (prepare, parent, child, \ &__dso_handle == NULL ? NULL : __dso_handle) -# endif #endif #elif defined(MUTEX_INITIALIZER) |