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

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 UTC