aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-01-25 01:26:54 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2010-01-25 01:26:54 +0000
commit3debf366c865e4e0a7b5809c343bcb07ce3e8104 (patch)
treee28dfd4a245d02edb3f10c6148871e6125e64e01
parentd9cd11ad44bfccf2be37b2473a675f009365e945 (diff)
downloadffmpeg-3debf366c865e4e0a7b5809c343bcb07ce3e8104.tar.gz
Check for getaddrinfo in the winsock headers.
This makes us link directly to getaddrinfo if it is available, making binaries incompatible with anything prior to windows XP. If compatibility is desired, compile with --target-os=mingw32-prexp. Patch by Martin Storsjö <martin at martin dot st>. Originally committed as revision 21442 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index b9d6a42d37..987c6b3faf 100755
--- a/configure
+++ b/configure
@@ -2533,6 +2533,8 @@ if enabled network; then
network_extralibs="-lws2" || \
{ check_func_headers winsock2.h closesocket -lws2_32 && \
network_extralibs="-lws2_32"; }
+ # getaddrinfo is available if _WIN32_WINNT >= 0x0501 is defined
+ check_func_headers ws2tcpip.h getaddrinfo $network_extralibs
check_type ws2tcpip.h socklen_t
check_type ws2tcpip.h "struct addrinfo"
check_type ws2tcpip.h "struct ipv6_mreq"