Browse Source

Don't compile daemon.c at all for non-MMU

Peter S. Mazinger 18 years ago
parent
commit
12c4a2b929
2 changed files with 4 additions and 4 deletions
  1. 4 1
      libc/unistd/Makefile.in
  2. 0 3
      libc/unistd/daemon.c

+ 4 - 1
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

+ 0 - 3
libc/unistd/daemon.c

@@ -46,7 +46,6 @@
 #include <paths.h>
 #include <unistd.h>
 
-#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