aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/getpid.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-10-01 02:50:57 +0000
committerrsc <devnull@localhost>2003-10-01 02:50:57 +0000
commita995e477ffb4dd1184da87e9e46a9e57f3178c63 (patch)
tree5b2260becdfb1aaf8b67fd91223b7d214b7e9451 /src/libthread/getpid.c
parente182749a982e415fba755bc1035c35da5c4fe606 (diff)
downloadplan9port-a995e477ffb4dd1184da87e9e46a9e57f3178c63.tar.gz
plan9port-a995e477ffb4dd1184da87e9e46a9e57f3178c63.tar.bz2
plan9port-a995e477ffb4dd1184da87e9e46a9e57f3178c63.zip
Various tweaks to make things run on Mac OS.
The main change is the use of pthread to implement ffork.
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();
}