From: Thibault Godouet Date: Sat, 24 Aug 2024 15:46:04 +0000 (+0100) Subject: Check for stdbool.h's availability. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a7607e7157650c49e28bcd4415a1d5755f1fee07;p=thirdparty%2Ffcron.git Check for stdbool.h's availability. --- diff --git a/config.h.in b/config.h.in index 5d73f2a..7a03ef1 100644 --- a/config.h.in +++ b/config.h.in @@ -387,6 +387,9 @@ /* Define if you have . */ #undef HAVE_SHADOW_H +/* Define if you have . */ +#undef HAVE_STDBOOL_H + /* Define if you have the unsetenv function. */ #undef HAVE_UNSETENV diff --git a/configure.in b/configure.in index 7ef4b45..b2c7977 100644 --- a/configure.in +++ b/configure.in @@ -47,6 +47,7 @@ dnl Checks for libraries. dnl Checks for header files. AC_HEADER_DIRENT +AC_HEADER_STDBOOL AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS(fcntl.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h) diff --git a/global.h b/global.h index 0a1160e..d2c0f2c 100644 --- a/global.h +++ b/global.h @@ -69,7 +69,13 @@ #include #endif +#ifdef HAVE_STDBOOL_H #include +#else +#define bool char +#define true 1 +#define false 0 +#endif #include #include #include