diff options
author | Yang Tse <yangsita@gmail.com> | 2009-04-28 10:40:02 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-04-28 10:40:02 +0000 |
commit | 486802e3a90151fd1ada9004adb5eec1036c44de (patch) | |
tree | 64f0cfabb474b687a870bfae904e0e3c6f175d17 /m4 | |
parent | 61ac74c684714c445654a1252cdf7f55315ed208 (diff) | |
download | c-ares-486802e3a90151fd1ada9004adb5eec1036c44de.tar.gz c-ares-486802e3a90151fd1ada9004adb5eec1036c44de.tar.bz2 c-ares-486802e3a90151fd1ada9004adb5eec1036c44de.zip |
Added CARES_INCLUDES_SYS_TYPES
Diffstat (limited to 'm4')
-rw-r--r-- | m4/cares-functions.m4 | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/m4/cares-functions.m4 b/m4/cares-functions.m4 index 13a83ba..10bbdbe 100644 --- a/m4/cares-functions.m4 +++ b/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 |