From d7134785267c9a58364db0496ed7f4dacc328b7e Mon Sep 17 00:00:00 2001 From: thib Date: Mon, 29 Dec 2003 17:06:16 +0000 Subject: [PATCH] bug fix : use HAVE_*_FTNCTL after their definition ;) --- config.h.in | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/config.h.in b/config.h.in index a33cdcc..198adf3 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.50 2003-12-29 14:31:28 thib Exp $ */ + /* $Id: config.h.in,v 1.51 2003-12-29 17:06:16 thib Exp $ */ /* *********************************************************** */ @@ -193,16 +193,6 @@ /* special user for the system fcrontab */ #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 - /* Define to empty if the keyword does not work. */ #undef const @@ -407,3 +397,14 @@ /* Define if you have the xnet library (-lxnet). */ #undef HAVE_LIBXNET + +/* 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.40.0