[kaffe] libraries/clib/net/InetAddressImpl.c cannot be compiled on old Linux

Timothy Stack stack@cs.utah.edu
Fri May 30 23:20:02 2003


On Friday, May 30, 2003, at 08:08  AM, Dalibor Topic wrote:
>
>> 2. Patch replace/getifaddrs.c
>>
>>    Old Linux does not have linux/netlink.h and linux/rtnetlink.h.
>>    So I do not expect kaffe to use replace/getifaddrs.c.
>
> I'll happily let Tim deal with the ipv6 stuff ;)

Just some configure magic i think.

>> 3. Install getaddrinfo.
>>
>>    Get getaddrinfo-1.5.1.tar.gz from
>>      http://www.sra.co.jp/people/m-kasahr/getaddrinfo/
>>    and compile getaddrinfo.c.  This program provides
>>    getaddrinfo() and getnameinfo().
>
> License is modified BSD without advertising clause, which is GPL 
> compatible, so
> it can be merged in. It's up to Tim to decide if and how it should go 
> in, as he
> wrote the IPv6 support.

The existing code already falls back to the old style gethostbyname, 
its just that I didn't bother to check for both getaddrinfo/getnameinfo 
since it seemed like they would always come in pairs.  Simple enough to 
just add a check for getnameinfo too...

> cheers,
> dalibor topic

tim