diff options
author | Paul Jakma <paul@jakma.org> | 2015-09-15 17:15:27 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-05-26 17:33:31 +0200 |
commit | 63a1386455343e07e5544ce5afbc7e5839619f46 (patch) | |
tree | 89798776ec58f559492c90e610c4f6f081ad3174 | |
parent | ospfd: trap on state change seems to send incorrect value for ospfNbrState (diff) | |
download | frr-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-x | configure.ac | 1 | ||||
-rw-r--r-- | lib/zebra.h | 3 |
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 |