cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl tests issue with gethostname on illumos

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 10 Jan 2015 12:44:03 +0100 (CET)

On Sat, 10 Jan 2015, Alexander Pyhalov wrote:

> However, in curl_setup.h we read
>
> #ifndef GETHOSTNAME_TYPE_ARG2
> # ifdef USE_WINSOCK
> # define GETHOSTNAME_TYPE_ARG2 int
> # else
> # define GETHOSTNAME_TYPE_ARG2 size_t
> # endif
> #endif

Yeah, but that logic should only be used if curl_config.h doesn't have the
define set, which from what I gather it should in your case. curl_config.h is
generated by configure and it should check what arguments your gethostname()
wants. Does it not work correctly?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-10