kern.osreldate and EAI_NODATA deprecation
Mark Huizer
freebsd+current at dohd.org
Wed Dec 31 05:26:58 PST 2003
> __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...
More information about the freebsd-current
mailing list