summaryrefslogtreecommitdiff
path: root/sysklogd/klogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r--sysklogd/klogd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index 33bc783..52a815d 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -136,8 +136,12 @@ extern int klogd_main(int argc, char **argv)
}
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
}
doKlogd();