summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@webkeks.org>2011-05-29 23:45:14 +0200
committerJonathan Schleifer <js@webkeks.org>2011-05-29 23:45:14 +0200
commitfe321998ca46746860cd7df1f40930776d5b1325 (patch)
tree70e13059b3b6517e563e755f8970877abc051e49
parent1b434f868c263f42aa16c2df610b03479dccc637 (diff)
Properly check for thread-safe getaddrinfo if it's unknown.
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 1c898a81..c77ea971 100644
--- a/configure.ac
+++ b/configure.ac
@@ -473,7 +473,16 @@ AC_TRY_COMPILE([
AS_IF([test x"$have_threadsafe_getaddrinfo" = x"unknown"], [
AC_EGREP_CPP(yes, [
- #include <netdb.h>
+ #ifndef _WIN32
+ # include <sys/types.h>
+ # include <sys/socket.h>
+ # include <netdb.h>
+ #else
+ # define _WIN32_WINNT 0x0501
+ # include <windows.h>
+ # include <ws2tcpip.h>
+ #endif
+
#ifdef h_errno
yes
#end