From ca79954d953f81801a5ad730856a5529028d66c7 Mon Sep 17 00:00:00 2001 From: thib Date: Mon, 29 Dec 2003 14:31:28 +0000 Subject: [PATCH] bug fixed : include fcntl.h before testing if O_SYNC is defined --- config.h.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.h.in b/config.h.in index dd0ec9e..a33cdcc 100644 --- a/config.h.in +++ b/config.h.in @@ -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 $ */ /* *********************************************************** */ @@ -194,6 +194,11 @@ #undef SYSFCRONTAB /* some systems (*BSD, ...) use O_FSYNC instead of O_SYNC for open() */ +#ifdef HAVE_FCNTL_H +#include +#elif HAVE_SYS_FCNTL_H +#include +#endif #ifndef O_SYNC #define O_SYNC O_FSYNC #endif -- 2.50.1