summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-22 16:44:43 +0000
committerYang Tse <yangsita@gmail.com>2007-02-22 16:44:43 +0000
commit7c768759582e74aaa3e39b17d7ddc8f0603fb4bb (patch)
treefe0b485deb6bcfb22055f06214d66d8053073a09 /configure.ac
parent915e774a42ad19ad9e8afb8c21ccee88ade22a94 (diff)
downloadc-ares-7c768759582e74aaa3e39b17d7ddc8f0603fb4bb.tar.gz
c-ares-7c768759582e74aaa3e39b17d7ddc8f0603fb4bb.tar.bz2
c-ares-7c768759582e74aaa3e39b17d7ddc8f0603fb4bb.zip
include <sys/types.h> when checking availability of the bool type
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e870d63..034be0e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -376,6 +376,9 @@ AC_CHECK_TYPE([bool],[
AC_DEFINE(HAVE_BOOL_T, 1,
[Define to 1 if bool is an available type.])
], ,[
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#ifdef HAVE_STDBOOL_H
#include <stdbool.h>
#endif