summaryrefslogtreecommitdiffstats
path: root/src/libthread/getpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/getpid.c')
-rw-r--r--src/libthread/getpid.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libthread/getpid.c b/src/libthread/getpid.c
index da03bd3f..c4d23dad 100644
--- a/src/libthread/getpid.c
+++ b/src/libthread/getpid.c
@@ -1,8 +1,7 @@
#include "threadimpl.h"
-#include <unistd.h>
-
+extern int getfforkid(void);
int
_threadgetpid(void)
{
- return getpid();
+ return getfforkid();
}