[FFmpeg-devel] [PATCH] Fix compilation on mingw - dependancy on select and winsock

Ramiro Polla ramiro
Thu Nov 22 04:31:18 CET 2007


Hello,

GizmoSDK wrote:
> When compiling without network support, the winsock version of select  
> is missing.
> 
> This patch fixes this...
> 
> Index: configure
> ===================================================================
> --- configure	(revision 11041)
> +++ configure	(working copy)
> @@ -1625,14 +1625,14 @@
>   ##########################################
>   # Network check
> 
> -if enabled network; then
> -    # Prefer arpa/inet.h over winsock2
> -    if check_header arpa/inet.h ; then
> -        check_func closesocket
> -    elif check_header winsock2.h ; then
> +# Prefer arpa/inet.h over winsock2
> +if check_header arpa/inet.h ; then
> +    check_func closesocket
> +elif check_header winsock2.h ; then
> +    if enabled network; then
>           network_extralibs="-lws2_32"
> -        check_func2 winsock2.h closesocket
>       fi
> +    check_func2 winsock2.h closesocket
>   fi

The patch would have to be split into functional (remove if enabled 
network) and cosmetics (reindent). But I'm not sure this is the best 
solution. I'll wait for libavnet to reach SVN to give this more thought.

Ramiro Polla




More information about the ffmpeg-devel mailing list