kern.osreldate and EAI_NODATA deprecation

Hajimu UMEMOTO ume at mahoroba.org
Wed Dec 31 05:34:48 PST 2003


Hi,

>>>>> On Wed, 31 Dec 2003 14:08:00 +0100
>>>>> Mark Huizer <freebsd+current at 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 at mahoroba.org  ume at bisd.hitachi.co.jp  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/


More information about the freebsd-current mailing list