cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: CURL_CHECK_GETHOSTBYNAME_R patch

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 31 Jan 2002 08:59:30 +0100 (MET)

On Thu, 31 Jan 2002, Albert Chin wrote:

> Forgot one case. On HP-UX 11.00, gethostbyname_r() is properly defined if
> -D_REENTRANT is used. Without it, the compiler still accepts the function
> prototype but gives a warning about hostent_data going out of scope. This
> is because struct hostent_data is not declared. So, we force an error by
> trying to set a variable to the struct.

Thanks! Applied and committed to CVS!

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-31