summaryrefslogtreecommitdiff
path: root/libc/unistd
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-10-04 22:26:07 +0000
committerEric Andersen <andersen@codepoet.org>2005-10-04 22:26:07 +0000
commit977216264f4ef4c2ebeb9d30435c17a950fed6e6 (patch)
treeb43b4b36da948adf32ace8f819e5d8e23085947f /libc/unistd
parentda595aca3aef049535b12fdcec0e77c787286779 (diff)
Do not stub out functions for mmu-less systems. Hide all
prototypes for functions disabled on mmu-less systems.
Diffstat (limited to 'libc/unistd')
-rw-r--r--libc/unistd/Makefile4
-rw-r--r--libc/unistd/daemon.c5
2 files changed, 3 insertions, 6 deletions
diff --git a/libc/unistd/Makefile b/libc/unistd/Makefile
index ed142a8aa..73be2f0cc 100644
--- a/libc/unistd/Makefile
+++ b/libc/unistd/Makefile
@@ -27,9 +27,7 @@ CSRC= sleep.c usleep.c ualarm.c getpass.c sysconf.c getlogin.c \
fpathconf.c confstr.c pathconf.c swab.c usershell.c \
getsubopt.c
-ifeq ($(strip $(ARCH_HAS_MMU)),y)
- CSRC += daemon.c
-else
+ifneq ($(strip $(ARCH_HAS_MMU)),y)
MOBJ1 += __exec_alloc.o
endif
diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c
index 91ae4056f..c584d8fc5 100644
--- a/libc/unistd/daemon.c
+++ b/libc/unistd/daemon.c
@@ -29,8 +29,7 @@
#include <paths.h>
#include <unistd.h>
-/* Note that this file should not be compiled in
- * unless __ARCH_HAS_MMU__ is defined */
+#if defined __ARCH_HAS_MMU__
int daemon( int nochdir, int noclose )
{
@@ -66,7 +65,7 @@ int daemon( int nochdir, int noclose )
return(0);
}
-
+#endif
/*-
* Copyright (c) 1990, 1993