summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-19 06:24:20 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-19 06:24:20 +0000
commite2f6ebd3f2969753e4ffc337ce5fb6cdf9d74775 (patch)
treeaa7553e1b76e25ecdaa3aa7a2b8e29d9159f8974 /include/unistd.h
parent6893f5d8b3fdf6ce65274b90b0b4b0bda9107b17 (diff)
downloaduClibc-alpine-e2f6ebd3f2969753e4ffc337ce5fb6cdf9d74775.tar.bz2
uClibc-alpine-e2f6ebd3f2969753e4ffc337ce5fb6cdf9d74775.tar.xz
Fix up breakage resulting from flipping the sense of some defines. Change from
defining things to "0" in the disabled case to outright undefining them, lest code that does an "#ifdef FOO" get inadvertantly triggered. Remove now unneeded lines from Rules.mak which makes the command line smaller and avoids redundancy (since this stuff is now pulled in via features.h). -Erik
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 916d972a0..16deb1ac3 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -646,10 +646,10 @@ 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. */
-#ifdef __HAS_NO_MMU__
-#define fork fork_not_available_on_mmuless_systems
-#else
+#ifdef __UCLIBC_HAS_MMU__
extern __pid_t fork __P ((void));
+#else
+#define fork fork_not_available_on_mmuless_systems
#endif
#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED