summaryrefslogtreecommitdiff
path: root/openbsd-compat/daemon.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-07-11 18:00:06 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-07-11 18:00:06 +1000
commit44c828fe29e61126ae5ff9e71e1a76a55f5fa34b (patch)
treed97bc573b20cd7d0ab9ad1270dfff7ef59fbaa32 /openbsd-compat/daemon.c
parent4e880e632be69861af52a90dcdf337deb60ca536 (diff)
- (dtucker) [configure.ac ssh-keygen.c openbsd-compat/bsd-openpty.c
openbsd-compat/daemon.c] Add includes needed by open(2). Conditionally include paths.h. Fixes build error on Solaris.
Diffstat (limited to 'openbsd-compat/daemon.c')
-rw-r--r--openbsd-compat/daemon.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsd-compat/daemon.c b/openbsd-compat/daemon.c
index f8a0680b..f380139d 100644
--- a/openbsd-compat/daemon.c
+++ b/openbsd-compat/daemon.c
@@ -34,6 +34,16 @@
#ifndef HAVE_DAEMON
+#include <sys/types.h>
+
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+
+#ifdef HAVE_FCNTL_H
+# include <fcntl.h>
+#endif
+
int
daemon(int nochdir, int noclose)
{