[PATCH] __FreeBSD_kernel__

Robert Millan rmh at debian.org
Wed Jul 6 06:53:34 UTC 2011


2011/7/5 Ed Maste <emaste at freebsd.org>:
> On the topic of where such a macro should be defined I originally had
> no strong opinion.  However, valid points have been raised about
> compiling software for FreeBSD using compilers that are not the one in
> the base system (from ports or otherwise, and GCC or otherwise).  This
> I think is a very valid point and one that would make me lean towards
> defining the macro in sys/param.h.  How workable is it to #include
> sys/param.h to pick up the macro where needed?

That works most of the time.  There could be a problem if software
can't assume <sys/param.h> is present, but I think it covers the vast
majority of cases.

-- 
Robert Millan


More information about the freebsd-hackers mailing list