summaryrefslogtreecommitdiffstats
path: root/libpthread/linuxthreads/pthread_atfork.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-18 02:49:28 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-08-18 02:49:28 +0000
commit5f7339fd738083baf7e42268301babd4324c3e3e (patch)
tree092a1ceb6ff0b6e83808b53fed77a4cd64609ba1 /libpthread/linuxthreads/pthread_atfork.c
parent1191db0686f450f1e9988fc04621489ba7e0a907 (diff)
downloaduClibc-alpine-5f7339fd738083baf7e42268301babd4324c3e3e.tar.bz2
uClibc-alpine-5f7339fd738083baf7e42268301babd4324c3e3e.tar.xz
Merge from trunk.
Diffstat (limited to 'libpthread/linuxthreads/pthread_atfork.c')
-rw-r--r--libpthread/linuxthreads/pthread_atfork.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/pthread_atfork.c b/libpthread/linuxthreads/pthread_atfork.c
index 2a67e3d6e..2464acb6b 100644
--- a/libpthread/linuxthreads/pthread_atfork.c
+++ b/libpthread/linuxthreads/pthread_atfork.c
@@ -44,8 +44,10 @@ extern void *__dso_handle __attribute__ ((__weak__));
/* Hide the symbol so that no definition but the one locally in the
executable or DSO is used. */
int
+#ifndef __pthread_atfork
/* Don't mark the compatibility function as hidden. */
attribute_hidden
+#endif
__pthread_atfork (prepare, parent, child)
void (*prepare) (void);
void (*parent) (void);
@@ -54,4 +56,8 @@ __pthread_atfork (prepare, parent, child)
return __register_atfork (prepare, parent, child,
&__dso_handle == NULL ? NULL : __dso_handle);
}
+#ifndef __pthread_atfork
+extern int pthread_atfork (void (*prepare) (void), void (*parent) (void),
+ void (*child) (void)) attribute_hidden;
strong_alias (__pthread_atfork, pthread_atfork)
+#endif