]> Pileus Git - ~andy/fetchmail/commitdiff
Fix Roidl's problem.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 1 Jul 1997 13:30:55 +0000 (13:30 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 1 Jul 1997 13:30:55 +0000 (13:30 -0000)
svn path=/trunk/; revision=1128

configure.in
daemon.c

index f531ca25a6eec5e62104d92ce52efdd2509bda87..9ab2db52c57c619dfda1bd0660cd6520713a322c 100644 (file)
@@ -23,7 +23,7 @@ AC_HEADER_STDC
 AC_TYPE_SIZE_T
 AC_TYPE_PID_T
 AC_TYPE_SIGNAL
-AC_CHECK_HEADERS(unistd.h termios.h termio.h sgtty.h stdarg.h alloca.h sys/itimer.h) 
+AC_CHECK_HEADERS(unistd.h termios.h termio.h sgtty.h stdarg.h alloca.h sys/itimer.h fcntl.h sys/fcntl.h
 
 AC_C_CONST                     dnl getopt needs this.
 
index 4d1592578c1cd009d453f018884bc1d35fcb039b..2bf696820a9f41055826009e9470c8d1178c3e33 100644 (file)
--- a/daemon.c
+++ b/daemon.c
 #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)