summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c
index 9e36858fc..f956ad565 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <fork.h>
#include <atomic.h>
+#include <tls.h>
/* Lock to protect allocation and deallocation of fork handlers. */
@@ -119,7 +120,7 @@ __linkin_atfork (struct fork_handler *newp)
newp, newp->next) != 0);
}
-
+#if 0
libc_freeres_fn (free_mem)
{
/* Get the lock to not conflict with running forks. */
@@ -144,3 +145,5 @@ libc_freeres_fn (free_mem)
free (oldp);
}
}
+#endif
+