From 72f9a4277fe5ad7c6c6b9a9810d469cc7fcc3c71 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 28 Oct 2001 05:12:20 +0000 Subject: Add in some (theoretical) uClinux support. Some init cleanups --- sysklogd/syslogd.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysklogd/syslogd.c') diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 236f1190d..84414439e 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -630,8 +630,12 @@ extern int syslogd_main(int argc, char **argv) umask(0); if (doFork == TRUE) { +#if !defined(__UCLIBC__) || defined(__UCLIBC_HAS_MMU__) if (daemon(0, 1) < 0) perror_msg_and_die("daemon"); +#else + error_msg_and_die("daemon not supported"); +#endif } doSyslogd(); -- cgit v1.2.3