[FFmpeg-cvslog] configure: Check for getaddrinfo in ws2tcpip.h, too

Ronald S. Bultje git at videolan.org
Mon Jul 16 01:54:15 CEST 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Sun Jun 24 22:22:29 2012 +0300| [39d18f21a5fd06c79b16a505b19cbdd15c6e093c] | committer: Martin Storsjö

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 at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=39d18f21a5fd06c79b16a505b19cbdd15c6e093c
---

 configure |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configure b/configure
index fd3a398..2dc87ee 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



More information about the ffmpeg-cvslog mailing list