]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
include <sys/types.h> when checking availability of the bool type
authorYang Tse <yangsita@gmail.com>
Thu, 22 Feb 2007 16:44:43 +0000 (16:44 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 22 Feb 2007 16:44:43 +0000 (16:44 +0000)
ares/configure.ac
configure.ac

index e870d63d2c865723ed7600e3a033d341fa90cbc1..034be0e2332d6dc19b3acb751a3a330311ef826c 100644 (file)
@@ -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
index be3c5d7b2083ee2bb22a0adb94a5e68a57e9edaf..c3213761901f495ab543ffc13030052872176742 100644 (file)
@@ -1729,6 +1729,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