From: Thibault Godouet Date: Mon, 29 Dec 2003 17:06:16 +0000 (+0000) Subject: bug fix : use HAVE_*_FTNCTL after their definition ;) X-Git-Tag: ver2_9_4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef8a750c68624d6af28b1e65110c93f792ea952d;p=thirdparty%2Ffcron.git bug fix : use HAVE_*_FTNCTL after their definition ;) --- 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 +