From owner-freebsd-arch@FreeBSD.ORG Thu Nov 17 06:46:41 2011 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1892106564A; Thu, 17 Nov 2011 06:46:41 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6962A8FC12; Thu, 17 Nov 2011 06:46:35 +0000 (UTC) Received: by iakl21 with SMTP id l21so2447280iak.13 for ; Wed, 16 Nov 2011 22:46:35 -0800 (PST) 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=k+M9Osvwlg6dTn3Exvf1g0+ocege0lVkUDWNtpVVqdQ=; b=lol/jPao/F6MahaL2Viu6PtX0TkpS6fvdy7Ij2hME9hXDhdObZ9chlC/eKTnsqLtru /Dyp2zsDza8NYl5LZmVKfNnqCKygapnH2uIEAQ9RKIXFtY5TjtthPOCEdBNzkSX6TYOT keL4HeXaeZ69eATfAG6OpHsIEilC00R1c316w= MIME-Version: 1.0 Received: by 10.42.150.135 with SMTP id a7mr38899287icw.53.1321512393803; Wed, 16 Nov 2011 22:46:33 -0800 (PST) Sender: rmh.aybabtu@gmail.com Received: by 10.42.243.198 with HTTP; Wed, 16 Nov 2011 22:46:33 -0800 (PST) In-Reply-To: References: Date: Thu, 17 Nov 2011 07:46:33 +0100 X-Google-Sender-Auth: AiIl9JZNGtYPSiLuDzTOwqEBN1Q Message-ID: From: Robert Millan To: Warner Losh Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Kostik Belousov , Adrian Chadd , freebsd-current@freebsd.org, freebsd-arch@freebsd.org Subject: Re: [PATCH] Detect GNU/kFreeBSD in user-visible kernel headers X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 06:46:41 -0000 2011/11/16 Warner Losh : > My second reaction was why not have > > #ifndef __FreeBSD_kernel__ > #define __FreeBSD_kernel__ __FreeBSD__ > #endif > > in sys/param.h and then just change __FreeBSD__ to __FreeBSD_kernel__ in = the headers that are affected? =C2=A0But I'm not quite sure what effects th= at would have on your environment. I'm fine with this. > Why do you think people wouldn't be fond of the __FreeBSD_kernel__ being = defined? See archived discussion: http://lists.freebsd.org/pipermail/freebsd-hackers/2011-July/035721.html particularly this mail in which you participated: http://lists.freebsd.org/pipermail/freebsd-hackers/2011-July/035823.html