[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev h_errno undefined (patch)
From: |
Bela Lubkin |
Subject: |
Re: lynx-dev h_errno undefined (patch) |
Date: |
Sun, 9 May 1999 11:10:06 -0700 |
Jean-Pierre Radley wrote:
> Compiling 2.8.2pre2 on SCO OpenServer 5.0.5, using the egcs compiler, I
> find that a fix I've had to make for all recent lynx versions is still
> needed in userdefs.h:
>
> #ifndef h_errno
> #include <resolv.h>
> #endif
This fix is insufficient on older releases of OpenServer -- h_errno
first showed up in <resolv.h> in 5.0.4, I believe. I had to patch
HTTCP.c so that it explicitly declares `extern int h_errno;' -- just
like configure's new h_errno test program does. In general, the actual
implementation code should be as close as possible to what configure is
testing for.
>Bela<
=============================================================================
*** HTTCP.c.orig Fri Apr 23 07:56:35 1999
--- HTTCP.c Sun May 9 02:08:53 1999
***************
*** 575,580 ****
--- 575,582 ----
#undef h_errno
#define h_errno my_errno
static int my_errno;
+ #else /* we do HAVE_H_ERRNO: */
+ extern int h_errno;
#endif
/* Resolve an internet hostname, like gethostbyname