]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
Check for stdbool.h's availability.
authorThibault Godouet <yo8192@users.noreply.github.com>
Sat, 24 Aug 2024 15:46:04 +0000 (16:46 +0100)
committerThibault Godouet <yo8192@users.noreply.github.com>
Sat, 24 Aug 2024 20:51:50 +0000 (21:51 +0100)
config.h.in
configure.in
global.h

index 5d73f2a3eb848e8285d673141355b194bcfe2dc3..7a03ef1a53396879320eefb8de3eaf5af4537af3 100644 (file)
 /* Define if you have <shadow.h>.  */
 #undef HAVE_SHADOW_H
 
+/* Define if you have <stdbool.h>.  */
+#undef HAVE_STDBOOL_H
+
 /* Define if you have the unsetenv function.  */
 #undef HAVE_UNSETENV
 
index 7ef4b45c2b707ee1bf655b7040ab54e2b5cccc00..b2c79777097947cef49be02385634bb9b8754322 100644 (file)
@@ -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)
index 0a1160ef9fe9d912059ae3d80cae45a3210751e7..d2c0f2c02c4a3fc7117f2c5c70953d506f557d10 100644 (file)
--- a/global.h
+++ b/global.h
 #include <stdarg.h>
 #endif
 
+#ifdef HAVE_STDBOOL_H
 #include <stdbool.h>
+#else
+#define bool    char
+#define true    1
+#define false   0
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>