From: thib Date: Mon, 29 Dec 2003 14:31:28 +0000 (+0000) Subject: bug fixed : include fcntl.h before testing if O_SYNC is defined X-Git-Tag: ver2_9_4~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca79954d953f81801a5ad730856a5529028d66c7;p=fcron bug fixed : include fcntl.h before testing if O_SYNC is defined --- 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