Re: kern.osreldate and EAI_NODATA deprecation

From: Hajimu UMEMOTO <ume_at_mahoroba.org>
Date: Wed, 31 Dec 2003 22:34:21 +0900
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
_at__at_ -256,7 +256,9 _at__at_
 				     "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 _at_ Internet Mutual Aid Society Yokohama, Japan
ume_at_mahoroba.org  ume_at_bisd.hitachi.co.jp  ume_at_{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
Received on Wed Dec 31 2003 - 04:34:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:36 UTC