summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-15 19:35:26 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-15 19:35:26 +0000
commit3ea3326bcd84a2663c9b78579d2a78cbfe9c4d6c (patch)
treefd0b6109e38d2182cebfa58ade4416436ab2d808 /libc/sysdeps/linux
parentb2928de09937de70fdd403d4c8ac0e621579917e (diff)
only build if we have fork
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/vfork.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/vfork.c b/libc/sysdeps/linux/common/vfork.c
index b4dc2288f..07662796c 100644
--- a/libc/sysdeps/linux/common/vfork.c
+++ b/libc/sysdeps/linux/common/vfork.c
@@ -2,6 +2,8 @@
#include <unistd.h>
#include <sys/types.h>
+#ifdef __NR_fork
+
libc_hidden_proto(vfork)
libc_hidden_proto(fork)
@@ -11,3 +13,5 @@ pid_t vfork(void)
return fork();
}
libc_hidden_def(vfork)
+
+#endif