summaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
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)
Diffstat (limited to 'lib')
-rw-r--r--lib/zebra.h3
1 files changed, 3 insertions, 0 deletions
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