[Xcb] [PATCH] Link with winsock library for socket functions on MinGW

Uli Schlachter psychon at znc.in
Sat Jul 4 06:31:18 PDT 2015


Am 17.03.2015 um 18:49 schrieb Jon TURNEY:
> Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
> ---
>  configure.ac | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/configure.ac b/configure.ac
> index 6e7e9c3..cce0ddb 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -206,6 +206,15 @@ case $host_os in
>          ;;
>  esac
>  
> +dnl Link with winsock for socket functions on MinGW
> +case $host_os in
> +        *mingw*)
> +                AC_CHECK_LIB([ws2_32],[main])

Why "main"?

You should use a function for this test that is really part of ws2_32.


Besides that, I guess everyone had enough time to complain and I'll just merge
this (when I find the time - sorry!) once this is handled (either convince me to
stay with "main" or change this suitably).

> +                ;;
> +        *)
> +                ;;
> +esac
> +
>  XCB_EXTENSION(Composite, yes)
>  XCB_EXTENSION(Damage, yes)
>  XCB_EXTENSION(DPMS, yes)
> 


-- 
A normal person is just someone you don't know well enough yet.
 - Nettie Wiebe


More information about the Xcb mailing list