curl-library
Re: [PATCH v2] NTLM tests: boost coverage by forcing the hostname
Date: Mon, 02 Aug 2010 22:45:06 +0200
Am 02.08.2010 22:05, schrieb Daniel Stenberg:
> On Mon, 2 Aug 2010, Guenter wrote:
>
>> there's still one issue that builds claim not to have a prototype for
>> gethostname ...
>
> Right, we need to provide a local one. I had to remove the #include of
> <unistd.h> since some systems use a slightly different prototype and
> then we get warnings when the declaration and the prototype mismatch!
>
Win32 has gethostname() in winsock.h / winsock2.h;
f.e. MingW32:
int PASCAL gethostname(char*,int);
or Watcom:
WINSOCK_API_LINKAGE int WSAAPI gethostname( char *, int );
Gün.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-02