summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-06-24 22:22:29 +0300
committerMartin Storsjö <martin@martin.st>2012-07-15 02:19:34 +0300
commit39d18f21a5fd06c79b16a505b19cbdd15c6e093c (patch)
treee764cec2367984335171207c0f3319062c48f8e4 /configure
parent951455c1c18d54177f281dba174078e54a835361 (diff)
configure: Check for getaddrinfo in ws2tcpip.h, too
This function is only available in the headers if unconditionally targeting a version >= XP. It is not strictly necessary, since we try loading these functions dynamically at runtime on windows in the fallback, but this makes things a bit faster and more straightforward. On mingw32, this function isn't visible by default, while it is on mingw64 (on both 32 and 64 bit). Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index fd3a398231..2dc87ee765 100755
--- a/configure
+++ b/configure
@@ -2863,7 +2863,8 @@ check_func nanosleep || { check_func nanosleep -lrt && add_extralibs -lrt; }
check_func fcntl
check_func fork
-check_func getaddrinfo $network_extralibs
+check_func getaddrinfo $network_extralibs ||
+ check_func_headers ws2tcpip.h getaddrinfo $network_extralibs
check_func gethrtime
check_func getopt
check_func getrusage