]> granicus.if.org Git - fcron/commitdiff
bug fixed : include fcntl.h before testing if O_SYNC is defined
authorthib <thib>
Mon, 29 Dec 2003 14:31:28 +0000 (14:31 +0000)
committerthib <thib>
Mon, 29 Dec 2003 14:31:28 +0000 (14:31 +0000)
config.h.in

index dd0ec9e33b40f5bc66ff8b6b7387e47ad03c6268..a33cdcccb0d1793923ebad2a39c7b54df2e8af19 100644 (file)
@@ -21,7 +21,7 @@
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: config.h.in,v 1.49 2003-12-25 22:50:37 thib Exp $ */
+ /* $Id: config.h.in,v 1.50 2003-12-29 14:31:28 thib Exp $ */
 
 
 /* *********************************************************** */
 #undef SYSFCRONTAB
 
 /* some systems (*BSD, ...) use O_FSYNC instead of O_SYNC for open() */
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#elif HAVE_SYS_FCNTL_H
+#include <sys/fcntl.h>
+#endif
 #ifndef O_SYNC
 #define O_SYNC O_FSYNC
 #endif