Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Dec 2003 15:18:25 +0100
From:      Stefan Farfeleder <stefan@fafoe.narf.at>
To:        Max Laier <max@love2party.net>
Cc:        current@freebsd.org
Subject:   Re: kern.osreldate and EAI_NODATA deprecation
Message-ID:  <20031231141546.GC595@wombat.fafoe.narf.at>
In-Reply-To: <200312311441.23719.max@love2party.net>
References:  <20031231130800.GB59239@eeyore.local.dohd.org> <200312311421.25383.max@love2party.net> <20031231132651.GC59239@eeyore.local.dohd.org> <200312311441.23719.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031231141546.GC595>