From: Paul Jakma Date: Tue, 15 Sep 2015 15:15:27 +0000 (+0100) Subject: build/lib: Check for and include stdbool.h by default X-Git-Tag: frr-2.0-rc1~721 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=63a1386455343e07e5544ce5afbc7e5839619f46;p=mirror%2Ffrr.git 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) --- diff --git a/configure.ac b/configure.ac index 4751591567..ff340f0973 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 aa4974b011..f45e5aaca7 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -92,6 +92,9 @@ typedef int socklen_t; #ifdef HAVE_INTTYPES_H #include #endif /* HAVE_INTTYPES_H */ +#ifdef HAVE_STDBOOL_H +#include +#endif /* machine dependent includes */ #ifdef SUNOS_5