W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2002

Bug in libwww unix version. HTDNS.c versus configure.

From: Michel Philip <mphilip@infovista.com>
Date: Wed, 16 Jan 2002 13:39:41 -0500 (EST)
Message-ID: <F520B214418AD4119F7000508BD90CC294B96E@hq01sr02.infovista.com>
To: "'www-lib@w3.org'" <www-lib@w3.org>

When using 
    configure --enable-reentrant

configure try to detect which reentrant version must be used for
'gethostbyname_r'.

If it success it enable one among the following defines in wwwconf.h:

#define HAVE_GETHOSTBYNAME_R_3 1
#define HAVE_GETHOSTBYNAME_R_5 1
#define HAVE_GETHOSTBYNAME_R_6 1 
 
However the HTDNS.c file use the following #ifdef variables:

#if defined(GETHOSTBYNAME_R_5)
#elif defined(GETHOSTBYNAME_R_6)
#elif defined(GETHOSTBYNAME_R_3)
#else

I suggest to make this consistent like this:

#if defined(HAVE_GETHOSTBYNAME_R_5)
#elif defined(HAVE_GETHOSTBYNAME_R_6)
#elif defined(HAVE_GETHOSTBYNAME_R_3)
#else

/M
Received on Thursday, 17 January 2002 03:23:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:40 GMT