kern.osreldate and EAI_NODATA deprecation

Stefan Farfeleder stefan at fafoe.narf.at
Wed Dec 31 06:18:33 PST 2003


On Wed, Dec 31, 2003 at 02:41:23PM +0100, Max Laier wrote:
> On Wednesday 31 December 2003 14:26, Mark Huizer wrote:
> >
> > 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
> 
> Other question, does it hurt you that EAI_NODATA == EAI_NONAME? I'd not think 
> so ... so why borther?! But yes, the syntax is okay ... consider extra 
> parentheses for the second expression.

Eg. it does matter if both macros occur in case labels of a switch
statement.

Regards,
Stefan Farfeleder


More information about the freebsd-current mailing list