[PATCH libXt] Only link with ws2_32 for mingw target

Cyril Brulebois kibi at debian.org
Thu May 26 08:42:32 PDT 2011


Not that I know much about Cygwin or mingw…

Jon TURNEY <jon.turney at dronecode.org.uk> (27/04/2011):
> For the Cygwin target, we will be using the socket functions provided
> by the Cygwin DLL, so linking with ws2_32 is unnecessary, even though
> it may be present.
> 
> Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
> ---
>  configure.ac |    9 ++++++++-
>  1 files changed, 8 insertions(+), 1 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index d18b0fe..84a9f4f 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -86,7 +86,14 @@ case $host_os in
>  	;;
>  esac
>  
> -AC_HAVE_LIBRARY(ws2_32)
> +# Link with winsock if mingw target
> +case $host_os in
> +	*mingw*)
> +		AC_HAVE_LIBRARY(ws2_32)
> +	;;
> +	*)
> +	;;
> +esac

it does look pretty harmless for the archs I care for, so you can add my:

Reviewed-by: Cyril Brulebois <kibi at debian.org>

Mraw,
KiBi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110526/e5676be3/attachment.pgp>


More information about the xorg-devel mailing list