Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 1997 18:34:14 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        obrien@NUXI.com, pst@shockwave.com
Cc:        cvs-all@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-ports@freefall.freebsd.org
Subject:   Re: cvs commit: src/contrib/gcc/config/i386 freebsd-elf.h freebsd.h
Message-ID:  <199702170734.SAA20018@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> It's utterly bogus to add this symbol into gcc as a predefined symbol
>> because MOST 4.4 bsd systems don't have it.
>
>Ok, then how about "__post_44bsd__".

Nope.  Most 4.4 BSD systems won't have it, so you still may as well spell
it `__FreeBSD__'.

>> The real way to figure out if you're on a late-model BSD system is to include
>> sys/param.h and check for BSD >= datecode.
>
>Yes, but people simply don't do that.  If anybody can offer a guarenteed
>way to include <sys/param.h> w/o needing to defined something like
>HAVE_SYS_PARAM_H in the Makefile, I'll switch all ports over to that.

There is no better way.  Define in in bsd.port.mk so at least the makefiles
don't need it.

Bruce



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