Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2003 22:34:21 +0900
From:      Hajimu UMEMOTO <ume@mahoroba.org>
To:        Mark Huizer <freebsd+current@dohd.org>
Cc:        current@freebsd.org
Subject:   Re: kern.osreldate and EAI_NODATA deprecation
Message-ID:  <ygeznd9qffm.wl%ume@mahoroba.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,

>>>>> 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 about this change, the
change is not specific to FreeBSD.  So, you should distinguish this
without FreeBSD specific way.  So, I dared to don't bump
__FreeBSD_version with this change.
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?ygeznd9qffm.wl%ume>