From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 12 20:00:58 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 3625F1065677; Tue, 12 Jul 2011 20:00:58 +0000 (UTC) (envelope-from rmh.aybabtu@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id E56DE8FC12; Tue, 12 Jul 2011 20:00:57 +0000 (UTC) Received: by iwr19 with SMTP id 19so6366944iwr.13 for ; Tue, 12 Jul 2011 13:00:57 -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:content-type; bh=uSW/YOdyiBmtaSnx65sMJ09f34USj0jiLjBEZRuqi0M=; b=KCYkG2H+BSOLhhkpwg8YeGpmqEQoVKtsdlJBjTcRtSZqTVIaF+eyzAja6OKqmaTSq/ eaUJ+YVHWmP0Q70MJze2zqIUMHYaEFCjdsmKls+mFqF2CgG46Qx07NNr4O+SkJNc5qdU LsUnpePqwRlrTpnOw9q+5lFu3xywh3maho61E= MIME-Version: 1.0 Received: by 10.42.73.9 with SMTP id q9mr312161icj.314.1310500856865; Tue, 12 Jul 2011 13:00:56 -0700 (PDT) Sender: rmh.aybabtu@gmail.com Received: by 10.42.222.7 with HTTP; Tue, 12 Jul 2011 13:00:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 12 Jul 2011 22:00:56 +0200 X-Google-Sender-Auth: EUMdX4ru7gwCtsbD0UcPn40fqKY Message-ID: From: Robert Millan To: Oliver Pinter , freebsd-hackers@freebsd.org, Ed Maste Content-Type: multipart/mixed; boundary=90e6ba6148bc0d21f504a7e4c2eb Cc: 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 20:00:58 -0000 --90e6ba6148bc0d21f504a7e4c2eb Content-Type: text/plain; charset=UTF-8 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 --90e6ba6148bc0d21f504a7e4c2eb Content-Type: text/plain; charset=US-ASCII; name="prepro.diff" Content-Disposition: attachment; filename="prepro.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gq1aajr50 LS0tIGEvc3lzL2NvbmYva2Vybi5wcmUubWsKKysrIGIvc3lzL2NvbmYva2Vybi5wcmUubWsKQEAg LTkwLDYgKzkwLDE0IEBACiAuZW5kaWYKIFdFUlJPUj89IC1XZXJyb3IKIAorLmlmICFkZWZpbmVk KE9QU1lTKQorT1BTWVMhPSB1bmFtZSAtcworLmVuZGlmCisKKy5pZiAke09QU1lTfSAhPSAiRnJl ZUJTRCIKK0NGTEFHUys9IC1VbGludXggLVVfX2xpbnV4X18gLVVfX05ldEJTRF9fIC1VX19PcGVu QlNEX18gLURfX0ZyZWVCU0RfXworLmVuZGlmCisKICMgWFhYIExPQ09SRSBtZWFucyAiZG9uJ3Qg ZGVjbGFyZSBDIHN0dWZmIiBub3QgImZvciBsb2NvcmUucyIuCiBBU01fQ0ZMQUdTPSAteCBhc3Nl bWJsZXItd2l0aC1jcHAgLURMT0NPUkUgJHtDRkxBR1N9CiAKLS0tIGEvc3lzL2NvbmYva21vZC5t aworKysgYi9zeXMvY29uZi9rbW9kLm1rCkBAIC05Niw2ICs5NiwxNCBAQAogQ0ZMQUdTKz0JLURf S0VSTkVMCiBDRkxBR1MrPQktREtMRF9NT0RVTEUKIAorLmlmICFkZWZpbmVkKE9QU1lTKQorT1BT WVMhPQkJdW5hbWUgLXMKKy5lbmRpZgorCisuaWYgJHtPUFNZU30gIT0gIkZyZWVCU0QiCitDRkxB R1MrPQktVWxpbnV4IC1VX19saW51eF9fIC1VX19OZXRCU0RfXyAtVV9fT3BlbkJTRF9fIC1EX19G cmVlQlNEX18KKy5lbmRpZgorCiAjIERvbid0IHVzZSBhbnkgc3RhbmRhcmQgb3Igc291cmNlLXJl bGF0aXZlIGluY2x1ZGUgZGlyZWN0b3JpZXMuCiBDU1REPQkJYzk5CiBOT1NURElOQz0JLW5vc3Rk aW5jCg== --90e6ba6148bc0d21f504a7e4c2eb--