]> git.puffer.fish Git - mirror/frr.git/commitdiff
build/lib: Check for and include stdbool.h by default
authorPaul Jakma <paul@jakma.org>
Tue, 15 Sep 2015 15:15:27 +0000 (16:15 +0100)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 26 May 2016 15:33:31 +0000 (15:33 +0000)
* 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)

configure.ac
lib/zebra.h

index 4751591567f1e98d4b64bae90eee2b0392bf9caf..ff340f0973a93c904cd304f0bf06ab3e53921c3d 100755 (executable)
@@ -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
index aa4974b011fd5e5487ff72fc3899d755e245003d..f45e5aaca778969fa8b1c1df5847467e6d6a2edf 100644 (file)
@@ -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