summaryrefslogtreecommitdiff
path: root/libpthread/nptl
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl')
-rw-r--r--libpthread/nptl/init.c2
-rw-r--r--libpthread/nptl/sysdeps/pthread/sigaction.c4
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/fork.c2
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c1
4 files changed, 4 insertions, 5 deletions
diff --git a/libpthread/nptl/init.c b/libpthread/nptl/init.c
index b70de84fd..3e5fde337 100644
--- a/libpthread/nptl/init.c
+++ b/libpthread/nptl/init.c
@@ -34,8 +34,8 @@
#include <smp.h>
#include <lowlevellock.h>
#include <bits/kernel-features.h>
-
#include <stdio.h>
+extern __typeof(sigaction) __libc_sigaction;
/* Size and alignment of static TLS block. */
size_t __static_tls_size;
diff --git a/libpthread/nptl/sysdeps/pthread/sigaction.c b/libpthread/nptl/sysdeps/pthread/sigaction.c
index 20cff8941..e004a3903 100644
--- a/libpthread/nptl/sysdeps/pthread/sigaction.c
+++ b/libpthread/nptl/sysdeps/pthread/sigaction.c
@@ -26,9 +26,7 @@
#define LIBC_SIGACTION 1
#include <sigaction.c>
-int
-sigaction (int sig, const struct sigaction *act, struct sigaction *oact);
-
+extern __typeof(sigaction) __sigaction;
int
__sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
{
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
index 2d4cae224..6ad9053b7 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
@@ -58,7 +58,7 @@ fresetlockfiles (void)
#endif
}
-
+extern __typeof(fork) __libc_fork;
pid_t
__libc_fork (void)
{
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c b/libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c
index 96e2bf439..d4de3cd9e 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/getpid.c
@@ -46,6 +46,7 @@ really_getpid (pid_t oldval)
}
#endif
+extern __typeof(getpid) __getpid;
pid_t
__getpid (void)
{