summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-12-13 16:29:09 +0000
committerEric Andersen <andersen@codepoet.org>2000-12-13 16:29:09 +0000
commit97112ff6f4f2a1dcd4c7f8a7512e0a4a02a2a332 (patch)
tree07381b1c6b4d0e1fa592554e6cae8f7f7dc4972e /include
parent4c1ad88f60d7b2b12b61bc648bcb4c6a4b35fdeb (diff)
Handle fork and vfork on a per architecture basis...
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index ebba54f8d..1ccd29480 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -646,8 +646,11 @@ extern int setegid __P ((__gid_t __gid));
/* Clone the calling process, creating an exact copy.
Return -1 for errors, 0 to the new process,
and the process ID of the new process to the old process. */
-extern __pid_t __fork __P ((void));
+#ifdef __HAS_NO_MMU__
+#define fork fork_not_available_on_mmuless_systems
+#else
extern __pid_t fork __P ((void));
+#endif
#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
/* Clone the calling process, but without copying the whole address space.