lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] lynx under OSX 10.4 (Tiger) fails 'make' @ "h_addr" ; OK


From: Thomas Dickey
Subject: Re: [Lynx-dev] lynx under OSX 10.4 (Tiger) fails 'make' @ "h_addr" ; OK under 10.3.X
Date: Sun, 1 May 2005 15:51:39 -0400
User-agent: Mutt/1.3.27i

On Sun, May 01, 2005 at 11:22:24AM -0700, OpenMacNews wrote:
>    ../../../WWW/Library/Implementation/HTTCP.c:1329: error: 'struct hostent'
>    has no member named 'h_addr'
>    make[1]: *** [HTTCP.o] Error 1
>    make: *** [all] Error 2
> 
> checking lynx 286dev11, same problem.
> 
> if I drop back to a 10.3.9 system, then all's OK ... no issue w/ h_addr.
> 
> has something in the 'gethost' family changed under Tiger?

apparently.  Perhaps a look at the related header files would help.
For instance on Solaris, that's defined in /usr/include/netdb.h,
e.g.,

struct  hostent {
        char    *h_name;        /* official name of host */
        char    **h_aliases;    /* alias list */
        int     h_addrtype;     /* host address type */
        int     h_length;       /* length of address */
        char    **h_addr_list;  /* list of addresses from name server */
#define h_addr  h_addr_list[0]  /* address, for backward compatiblity */
};

Seeing a "#define" there gives the impression that someone might have
decided to break compatibility by removing it on some other system.


-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]