summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-17 23:37:13 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-17 23:37:13 +0000
commit5aa97ad5d178c1f9616b951fbfd33abf86649a23 (patch)
treea00dad2966ea019edc6551a5b90f9322fb39754f /libc/sysdeps/linux/common
parent0a7b9d5d57021e616dc5e4b5dfaa3b93131381af (diff)
dont try to build fork if the arch doesnt support it (like ia64)
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/fork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/fork.c b/libc/sysdeps/linux/common/fork.c
index 9f87ea4e2..e766799c0 100644
--- a/libc/sysdeps/linux/common/fork.c
+++ b/libc/sysdeps/linux/common/fork.c
@@ -11,7 +11,9 @@
#include <unistd.h>
#ifdef __ARCH_HAS_MMU__
+#ifdef __NR_fork
#define __NR___libc_fork __NR_fork
_syscall0(pid_t, __libc_fork);
weak_alias(__libc_fork, fork);
#endif
+#endif