1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2002-12-31  Ulrich Drepper  <drepper@redhat.com>

	* malloc/thread-m.h [SHARED] (thread_atfork): Assume __dso_handle
	is available.

	* sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv): Re-add
This commit is contained in:
Ulrich Drepper
2002-12-31 21:10:07 +00:00
parent a4baf360be
commit 6d6ee629af
8 changed files with 30 additions and 2 deletions

View File

@ -77,9 +77,14 @@ extern void *__dso_handle __attribute__ ((__weak__));
#include <fork.h>
#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 */