Date: Sat, 2 Jul 2011 18:06:03 -0400 (EDT) From: Benjamin Kaduk <kaduk@MIT.EDU> To: Robert Millan <rmh@debian.org> Cc: freebsd-hackers@freebsd.org, Ed Maste <emaste@freebsd.org> Subject: Re: [PATCH] __FreeBSD_kernel__ Message-ID: <alpine.GSO.1.10.1107021801430.6818@multics.mit.edu> In-Reply-To: <CAOfDtXPUxQO1zbnxh8sh%2By7g=d8QaH2svYtEQJ06L4d%2BQKG8VA@mail.gmail.com> References: <CAOfDtXPUxQO1zbnxh8sh%2By7g=d8QaH2svYtEQJ06L4d%2BQKG8VA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2 Jul 2011, Robert Millan wrote: > My request is that FreeBSD also defines __FreeBSD_kernel__. If this > happens, life would be made a bit easier on both sides, as it'd be % Index: contrib/gcc/config/freebsd-spec.h % =================================================================== % --- contrib/gcc/config/freebsd-spec.h (revision 223721) % +++ contrib/gcc/config/freebsd-spec.h (working copy) % @@ -54,6 +54,7 @@ % do \ % { \ % builtin_define_with_int_value ("__FreeBSD__", FBSD_MAJOR); \ % + builtin_define ("__FreeBSD_kernel__"); \ Is there a reason to prefer just defining the symbol to also including the major version number as is done for __FreeBSD__? -Ben Kaduk % builtin_define_std ("unix"); \ % builtin_define_std ("__unix__"); \ % builtin_define ("__KPRINTF_ATTRIBUTE__"); \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.GSO.1.10.1107021801430.6818>