aboutsummaryrefslogtreecommitdiffstats
path: root/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 4d159257..2bf69682 100644
--- a/daemon.c
+++ b/daemon.c
@@ -11,7 +11,12 @@
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
-#include <sys/fcntl.h> /* Solaris 2.5 requires this */
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif /* HAVE_FCNTL_H */
+#ifdef HAVE_SYS_FCNTL_H
+#include <sys/fcntl.h>
+#endif /* HAVE_SYS_FCNTL_H */
#include <sys/stat.h> /* get umask(2) prototyped */
#if defined(HAVE_UNISTD_H)