From 6d6ee629afa277bc03dea147e937925e8cf3ec31 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 31 Dec 2002 21:10:07 +0000 Subject: Update. 2002-12-31 Ulrich Drepper * malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle is available. * sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add --- malloc/thread-m.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'malloc/thread-m.h') diff --git a/malloc/thread-m.h b/malloc/thread-m.h index d3352d1..d65ba91 100644 --- a/malloc/thread-m.h +++ b/malloc/thread-m.h @@ -77,9 +77,14 @@ extern void *__dso_handle __attribute__ ((__weak__)); #include -#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) \ __register_atfork (prepare, parent, child, \ &__dso_handle == NULL ? NULL : __dso_handle) +#endif #elif defined(MUTEX_INITIALIZER) /* Assume hurd, with cthreads */ -- cgit v1.1