On Mon, 3 Dec 2001, Andre Majorel wrote:

>   Problem #2 :
> 
>     gcc -I. -I.    -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" 
>-DLOCALEDIR=\"/usr/local/share/locale\" -O2 -Wall -Wno-implicit -c host.c
>     host.c: In function `lookup_host':
>     host.c:258: `h_errno' undeclared (first use in this function)
>     host.c:258: (Each undeclared identifier is reported only once
>     host.c:258: for each function it appears in.)
> 
>     Apparently, h_errno is not declared at all under HP-UX (ie.
>     find /usr/include -follow -type f | xargs grep h_errno turns
>     up nothing). Declaring h_errno (extern int h_errno;) fixes
>     the problem. I suppose we need something like :
> 
>       #if HPUX
>       extern int h_errno;
>       #endif

 Better yet:

#if !HAVE_DECL_H_ERRNO
extern int h_errno;
#endif

and use AC_CHECK_DECLS(h_errno,,,[#include <netdb.h>]) somewhere in
configure.in. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [EMAIL PROTECTED], PGP key available        +

Reply via email to