Date: Wed, 31 Dec 2003 14:26:51 +0100 From: Mark Huizer <freebsd+current@dohd.org> To: current@freebsd.org Subject: Re: kern.osreldate and EAI_NODATA deprecation Message-ID: <20031231132651.GC59239@eeyore.local.dohd.org> In-Reply-To: <200312311421.25383.max@love2party.net> References: <20031231130800.GB59239@eeyore.local.dohd.org> <200312311421.25383.max@love2party.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> __FreeBSD_version is defined in sys/sys/param.h. The closest for your case is: > 501112 from October 16th. > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/param.h > > I'd rather suggest using an unconditional patch which introduces #ifdef > EAI_NODATA where required. That is future save (as the comment notes that > EAI_NODATA will go forever on Apr 23th). Well, that's tougher, since EAI_NODATA is defined (it's defined to be EAI_NODATA). Hmm... would this work? I'm not too 100% secure about preprocessing stuff. If this should work, I could try to get it included in the normal kaffe tree. #if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME ... #endif Perhaps I should put a defined(__FREEBSD__) somewhere in there as well. #if !defined(__FREEBSD__) || (defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME) Something like that? Mark -- Nice testing in little China...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031231132651.GC59239>