summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Jakma <paul@jakma.org>2015-09-15 16:15:27 +0100
committerPaul Jakma <paul@quagga.net>2015-09-24 15:26:42 +0100
commite8441a81f6c9f73bc8a25669003abffb40066703 (patch)
tree4d15512b9a10d863fa831d9b611f1d9092ee74ae
parent7ef4221c3f85121edb68a6a54ebd6bb167408e47 (diff)
downloadquagga-e8441a81f6c9f73bc8a25669003abffb40066703.tar.bz2
quagga-e8441a81f6c9f73bc8a25669003abffb40066703.tar.xz
build/lib: Check for and include stdbool.h by default
* stdbool.h should be widely supported by now, and the 'bool' type makes more semantic sense than an integer type for boolean values.
-rwxr-xr-xconfigure.ac1
-rw-r--r--lib/zebra.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6864a29c..aa84ee51 100755
--- a/configure.ac
+++ b/configure.ac
@@ -436,6 +436,7 @@ AC_C_VOLATILE
AC_HEADER_STDC
AC_HEADER_TIME
AC_HEADER_SYS_WAIT
+AC_HEADER_STDBOOL
dnl AC_TYPE_PID_T
AC_TYPE_UID_T
AC_TYPE_MODE_T
diff --git a/lib/zebra.h b/lib/zebra.h
index 85864377..1ee5107e 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -92,6 +92,9 @@ typedef int socklen_t;
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif /* HAVE_INTTYPES_H */
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#endif
/* machine dependent includes */
#ifdef SUNOS_5