aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-28 10:40:02 +0000
committerYang Tse <yangsita@gmail.com>2009-04-28 10:40:02 +0000
commitdd8d472318d6346f98f366438c7a49f3b2d02503 (patch)
tree8fa1c7c91fa7c513b257392405db0adee06f4bb1 /ares
parent256489639c245add0ca0cd92d2c4d91cebaa14e2 (diff)
Added CARES_INCLUDES_SYS_TYPES
Diffstat (limited to 'ares')
-rw-r--r--ares/m4/cares-functions.m420
1 files changed, 19 insertions, 1 deletions
diff --git a/ares/m4/cares-functions.m4 b/ares/m4/cares-functions.m4
index 13a83ba48..10bbdbe4c 100644
--- a/ares/m4/cares-functions.m4
+++ b/ares/m4/cares-functions.m4
@@ -16,7 +16,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 28
+# serial 29
dnl CARES_INCLUDES_ARPA_INET
@@ -187,6 +187,24 @@ cares_includes_sys_socket="\
])
+dnl CARES_INCLUDES_SYS_TYPES
+dnl -------------------------------------------------
+dnl Set up variable with list of headers that must be
+dnl included when sys/types.h is to be included.
+
+AC_DEFUN([CARES_INCLUDES_SYS_TYPES], [
+cares_includes_sys_types="\
+/* includes start */
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+/* includes end */"
+ AC_CHECK_HEADERS(
+ sys/types.h,
+ [], [], [$cares_includes_sys_types])
+])
+
+
dnl CARES_INCLUDES_SYS_UIO
dnl -------------------------------------------------
dnl Set up variable with list of headers that must be