summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_waitpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_waitpid.c')
-rw-r--r--lib/libpthread/thread/thr_waitpid.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_waitpid.c b/lib/libpthread/thread/thr_waitpid.c
index 28fcd78..672183d 100644
--- a/lib/libpthread/thread/thr_waitpid.c
+++ b/lib/libpthread/thread/thr_waitpid.c
@@ -31,12 +31,13 @@
#include <sys/types.h>
#include <sys/wait.h>
-#ifdef _THREAD_SAFE
#include <pthread.h>
#include "pthread_private.h"
+#pragma weak waitpid=_waitpid
+
pid_t
-waitpid(pid_t wpid, int *status, int options)
+_waitpid(pid_t wpid, int *status, int options)
{
pid_t ret;
@@ -46,4 +47,3 @@ waitpid(pid_t wpid, int *status, int options)
return ret;
}
-#endif
OpenPOWER on IntegriCloud