summaryrefslogtreecommitdiffhomepage
path: root/libbb/libbb.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-04 19:25:57 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-04 19:25:57 +0000
commitb2e3e9b0c9149f0c7e1e6a8b46587d7cb53b68aa (patch)
treed420a30885568b703014b5808e9f174aa8aa808e /libbb/libbb.h
parent2129f97cd9502b731f6489e4c8be54fd44affc1d (diff)
Seems that stupid libc5 doesn't implement daemon(), so conditionally
inclde that here. -Erik
Diffstat (limited to 'libbb/libbb.h')
-rw-r--r--libbb/libbb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/libbb.h b/libbb/libbb.h
index b5c845952..d850befea 100644
--- a/libbb/libbb.h
+++ b/libbb/libbb.h
@@ -39,6 +39,8 @@
#if ! defined __GLIBC__ && ! defined __UCLIBC__
/* libc5 doesn't define socklen_t */
typedef unsigned int socklen_t;
+/* libc5 doesn't implement BSD 4.4 daemon() */
+extern int daemon (int nochdir, int noclose);
#endif
/* Some useful definitions */