Date: Wed, 31 Dec 2003 22:41:52 +0900 From: Hajimu UMEMOTO <ume@FreeBSD.org> To: Mark Huizer <freebsd+current@dohd.org> Cc: current@freebsd.org Subject: Re: kern.osreldate and EAI_NODATA deprecation Message-ID: <ygey8stqf33.wl%ume@FreeBSD.org> In-Reply-To: <20031231130800.GB59239@eeyore.local.dohd.org> References: <20031231130800.GB59239@eeyore.local.dohd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
# Since my message was rejected by the ml policy, I re-send it. :-(
>>>>> On Wed, 31 Dec 2003 14:08:00 +0100
>>>>> Mark Huizer <freebsd+current@dohd.org> said:
freebsd+current> I'm trying to upgrade the port for kaffe-devel, but I run into a problem
freebsd+current> related to the changes in netdb.h on October 24th. (EAI_NODATA is
freebsd+current> deprecated and is now an alias for EAI_NONAME).
I can solve this with an extra patch if osreldate>someversion, but I
freebsd+current> don't know how to find what someversion should be.
freebsd+current> Was it changed because of that commit, or where can I find the nearest
freebsd+current> osreldate change?
Though it seems that FreeBSD is 1st runner of this change, it is not
specific to FreeBSD. You should distinguish it without FreeBSD
specific way. So, I dared to don't bump __FreeBSD_version.
How about this patch?
Index: libraries/clib/net/InetAddressImpl.c
diff -u libraries/clib/net/InetAddressImpl.c.orig libraries/clib/net/InetAddressImpl.c
--- libraries/clib/net/InetAddressImpl.c.orig Fri May 16 00:03:16 2003
+++ libraries/clib/net/InetAddressImpl.c Wed Dec 31 22:23:29 2003
@@ -256,7 +256,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",
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygey8stqf33.wl%ume>
