diff options
author | Yang Tse <yangsita@gmail.com> | 2009-06-01 09:19:16 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-06-01 09:19:16 +0000 |
commit | 1d7308ee78c532d326cd4048ffd84b0d7e083978 (patch) | |
tree | e965d7f8b23cfc81f8f800c155c69818283cbf41 | |
parent | 16d842958ad756471edb9b022b2a4a5a102e0403 (diff) | |
download | c-ares-1d7308ee78c532d326cd4048ffd84b0d7e083978.tar.gz c-ares-1d7308ee78c532d326cd4048ffd84b0d7e083978.tar.bz2 c-ares-1d7308ee78c532d326cd4048ffd84b0d7e083978.zip |
John E. Malmberg noticed that the configure script was failing to detect the
timeval struct on VMS when building with _XOPEN_SOURCE_EXTENDED undefined due
to definition taking place in socket.h instead of time.h
-rw-r--r-- | acinclude.m4 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index e9690a7..6594b6f 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1320,7 +1320,7 @@ AC_DEFUN([CURL_CHECK_STRUCT_TIMEVAL], [ AC_REQUIRE([AC_HEADER_TIME])dnl AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK])dnl AC_REQUIRE([CURL_CHECK_HEADER_WINSOCK2])dnl - AC_CHECK_HEADERS(sys/types.h sys/time.h time.h) + AC_CHECK_HEADERS(sys/types.h sys/time.h time.h sys/socket.h) AC_CACHE_CHECK([for struct timeval], [ac_cv_struct_timeval], [ AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[ @@ -1351,6 +1351,9 @@ AC_DEFUN([CURL_CHECK_STRUCT_TIMEVAL], [ #include <time.h> #endif #endif +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif ]],[[ struct timeval ts; ts.tv_sec = 0; |