Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Feb 97 11:33:16 +0100
From:      garyj@frt.dec.com
To:        current@freebsd.org
Subject:   Re: conditionally including <sys/param.h> 
Message-ID:  <9702051033.AA17951@cssmuc.frt.dec.com>
In-Reply-To: Message from Warner Losh <imp@village.org>  of Tue, 04 Feb 97  18:20:28 MST.

next in thread | previous in thread | raw e-mail | index | archive | help

imp@village.org writes:
> In message <19970202135048.PN07710@dragon.nuxi.com> David O'Brien writes:
> : to get a new cpp symbol added (like __44bsd__ or something).
> 
> This is a bad idea, since it has lost a lot of its potential meaning
> with so many 44bsd derived systems that pick and chose between 4.4 and
> 4.4 Lite 2.
> 

what I'd lioke to see in -current (aka 3.0) is __FreeBSD__=3 instead of
__FreeBSD__=2. This would make it easier to differentiate between 2.2 and
3.0. At the moment they both define BSD the same, so it's not possible
to use BSD to tell 'em apart.

I'm helping to maintain some kernel code which compiles on all FreeBSD
versions > 2, but 3.0 requires some special handling and I'm not aware
of a reliable way to check whether I'm compiling under 2.2 or 3.0.

If anyone knows of a good mechanism, please pipe up.

---
Gary Jennejohn				(work) gjennejohn@frt.dec.com
					(home) Gary.Jennejohn@munich.netsurf.de
					(play) gj@freebsd.org





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