From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 12 21:59:14 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 C314A106570F; Tue, 12 Jul 2011 21:59:14 +0000 (UTC) (envelope-from oliver.pntr@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 71D708FC1D; Tue, 12 Jul 2011 21:59:14 +0000 (UTC) Received: by yxl31 with SMTP id 31so1144104yxl.13 for ; Tue, 12 Jul 2011 14:59:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XyhjoclBdjAyXgw2c6IboJdfQn9HRnkP+6up7VgNmtc=; b=nMFzLVU0UX5gnykJ7dK/0maHHgM3y6Vpsox+80QeljN1hTfqyssjDi/P1GZkgU2BwY V56bvyoVOH/n/nYPGGEl32k5ejyshoLSkYJaxx7Y1iq8dKUs7kW9ITiLtrNZj4uMalu1 9LCGaOGXcEpKc37JkSMPYFh+InDuBb4GKKGJU= MIME-Version: 1.0 Received: by 10.150.253.15 with SMTP id a15mr658233ybi.160.1310506332024; Tue, 12 Jul 2011 14:32:12 -0700 (PDT) Received: by 10.150.138.14 with HTTP; Tue, 12 Jul 2011 14:32:11 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Jul 2011 23:32:11 +0200 Message-ID: From: Oliver Pinter To: Robert Millan Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org, Ed Maste Subject: Re: [PATCH] fake pre-processor macros when building on non-FreeBSD system 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: Tue, 12 Jul 2011 21:59:14 -0000 On 7/12/11, Robert Millan wrote: > 2011/7/12 Oliver Pinter : >> +.if ${OPSYS} != "FreeBSD" >> >> and what's the status example on NetBSD? > > I didn't think of it. There are some instances of __NetBSD__ and also > __OpenBSD__ in the kernel tree, and the same problem can be fixed for > these two systems with minimal effort. > > Here's a new version of the patch, which also adds -U__NetBSD__ and > -U__OpenBSD__ to CFLAGS. > > -- > Robert Millan > This seem like an ugly hack.. Please keep in your mind, FreeBSD is not linux; and I hope, never be