summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Jakma <paul@jakma.org>2015-09-15 17:15:27 +0200
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-05-26 17:33:31 +0200
commit63a1386455343e07e5544ce5afbc7e5839619f46 (patch)
tree89798776ec58f559492c90e610c4f6f081ad3174
parentospfd: trap on state change seems to send incorrect value for ospfNbrState (diff)
downloadfrr-63a1386455343e07e5544ce5afbc7e5839619f46.tar.xz
frr-63a1386455343e07e5544ce5afbc7e5839619f46.zip
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. (cherry picked from commit e8441a81f6c9f73bc8a25669003abffb40066703)
-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 475159156..ff340f097 100755
--- a/configure.ac
+++ b/configure.ac
@@ -478,6 +478,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 aa4974b01..f45e5aaca 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