Subject: Re: Windows compilation help

Re: Windows compilation help

From: Daniel Stenberg <>
Date: Fri, 20 Jul 2018 14:51:33 +0200 (CEST)

On Thu, 19 Jul 2018, Milind Gupta wrote:

> In file included from conftest.c:79:0:
> /usr/include/w32api/winsock2.h:1004:34: error: conflicting types for
> 'gethostname'
> WINSOCK_API_LINKAGE int WSAAPI gethostname(char *name,int namelen);
> I have attached the config.log file. I found a similar error reported for
> imagemagick and I think they did a patch for it.

Your compiler found two conflicting declarations of gethostname(). That seems
like a problem that's not up to libssh2 to fix...

Received on 2018-07-20