From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 3 10:24:59 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72177106566C; Sun, 3 Jul 2011 10:24:59 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4548A8FC0A; Sun, 3 Jul 2011 10:24:59 +0000 (UTC) Received: by pzk27 with SMTP id 27so2075760pzk.13 for ; Sun, 03 Jul 2011 03:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ig0b5u/45lMg4bIHw0imCZfq15whyqxA2kfXbkM3G1s=; b=HUnVrYVqyK/n4FV0GoBLLYxR5PeHGY81KcqSz/RU+8xNRWiJIVZBM8hF8G2lzLehVn oeLt2ngYiZui0fsWtoU1BxWPrh1TOh6g61rqE235CK9xGA7Ap4JHze1gdsSmN57uDxBy BDDM2lQKzCWoC6Azvuz96i1Fxt57g7QUt9FDg= MIME-Version: 1.0 Received: by 10.68.27.41 with SMTP id q9mr5566219pbg.337.1309688698740; Sun, 03 Jul 2011 03:24:58 -0700 (PDT) Sender: rmh.aybabtu@gmail.com Received: by 10.68.47.138 with HTTP; Sun, 3 Jul 2011 03:24:58 -0700 (PDT) In-Reply-To: References: Date: Sun, 3 Jul 2011 12:24:58 +0200 X-Google-Sender-Auth: OKCg6YbDWO9Yt6CBO_fViC0tbDA Message-ID: From: Robert Millan To: Benjamin Kaduk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Ed Maste Subject: Re: [PATCH] __FreeBSD_kernel__ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2011 10:24:59 -0000 2011/7/3 Benjamin Kaduk : > % =C2=A0 =C2=A0 =C2=A0 builtin_define_with_int_value ("__FreeBSD__", FBSD= _MAJOR); =C2=A0 =C2=A0 =C2=A0\ > % + =C2=A0 =C2=A0 builtin_define ("__FreeBSD_kernel__"); =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0\ > > Is there a reason to prefer just defining the symbol to also including th= e > major version number as is done for __FreeBSD__? None. It's just not useful from our side, but it does no harm either. (In Debian world, there's no tight integration like you have by putting FreeBSD kernel and compiler(s) in the same repository. A particular version of GCC can be used to compile for one kernel or another, so we wouldn't be able to "commit" it to a specific kernel version) --=20 Robert Millan