From c69d2df5388136ec094d4ec1ca163fb7a04477f3 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 2 Feb 2006 02:44:29 +0000 Subject: Don't use getadrinfo() etc on Windows, as they are present on XP only. 2006-02-02 Tor Lillqvist * configure.in: Don't use getadrinfo() etc on Windows, as they are present on XP only. Windows 2000 is still widespread. * camel-net-utils.h * camel-net-utils.c: Make it compile on Win32 also without getaddrinfo() (with NEED_ADDRINFO). --- configure.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 3c6e8bc3a..2b422e686 100644 --- a/configure.in +++ b/configure.in @@ -145,13 +145,14 @@ AC_MSG_CHECKING([for Win32]) case "$host" in *-mingw*) os_win32=yes - AC_CACHE_VAL(have_addrinfo, [have_addrinfo=yes]) NO_UNDEFINED='-no-undefined' SOCKET_LIBS='-lws2_32 -ldnsapi' DL_LIB='' SOFTOKN3_LIB='' LIBEXECDIR_IN_SERVER_FILE='../../../libexec' - AC_DEFINE(_WIN32_WINNT, 0x501, [To get getaddrinfo etc declarations]) + # No, don't use Windows XP -only API + # AC_CACHE_VAL(have_addrinfo, [have_addrinfo=yes]) + # AC_DEFINE(_WIN32_WINNT, 0x501, [To get getaddrinfo etc declarations]) ;; *) os_win32=no NO_UNDEFINED='' -- cgit v1.2.1