[kaffe] EAI_NODATA deprecated

Guilhem Lavaux guilhem at kaffe.org
Wed Dec 31 07:48:01 PST 2003


Mark Huizer wrote:

>It seems FreeBSD is one of the first to adopt, by changing their include
>files in 5.x to start deprecating EAI_NODATA (so getaddrinfo() will
>return EAI_NONAME in that case).
>
>I suggest the following patch, that should work on any platform that
>follows this RFC (dunno the exact number, sorry), and use this patch:
>
>--- libraries/clib/net/InetAddressImpl.c.orig	Wed Dec 31 13:43:03 2003
>+++ libraries/clib/net/InetAddressImpl.c	Wed Dec 31 13:43:09 2003
>@@ -241,7 +241,9 @@
> 			   "Unable to contact name server");
>       break;
>     case EAI_NONAME:
>+#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME
>     case EAI_NODATA:
>+#endif
>       postExceptionMessage(&einfo,
> 			   JAVA_NET(UnknownHostException),
> 			   "Unknown host: %s",
>
>This patch makes kaffe compile again on freebsd 5.x, I will test on 4.9
>today if I have some time left before social duties jump in.
>
>Mark
>  
>
Hi Mark,

Thank you Mark for submitting this fix. I'm applying it right now as it 
doesn't seem to break anything.

Regards,
Guilhem.





More information about the kaffe mailing list