From: Thibault Godouet 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: http://git.ipfire.org/?a=commitdiff_plain;h=e8f4961597aac21352b7074b1b473fb5a6e3e3f8;p=thirdparty%2Ffcron.git 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