From 12c4a2b9298f6bb4320509b8bb21ba0aa2d4392d Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 13 Feb 2006 08:05:00 +0000 Subject: Don't compile daemon.c at all for non-MMU --- libc/unistd/Makefile.in | 5 ++++- libc/unistd/daemon.c | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libc/unistd/Makefile.in b/libc/unistd/Makefile.in index 84b83b854..2e6696fc0 100644 --- a/libc/unistd/Makefile.in +++ b/libc/unistd/Makefile.in @@ -7,7 +7,10 @@ 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 daemon.c + getsubopt.c +ifeq ($(ARCH_HAS_MMU),y) +CSRC+= daemon.c +endif MSRC:=exec.c MOBJ:=execl.o execv.o execle.o execlp.o execvp.o diff --git a/libc/unistd/daemon.c b/libc/unistd/daemon.c index 77e10dd76..03cffc7d1 100644 --- a/libc/unistd/daemon.c +++ b/libc/unistd/daemon.c @@ -46,7 +46,6 @@ #include #include -#if defined __ARCH_HAS_MMU__ libc_hidden_proto(open) libc_hidden_proto(close) libc_hidden_proto(_exit) @@ -88,5 +87,3 @@ int daemon( int nochdir, int noclose ) } return(0); } - -#endif -- cgit v1.2.3