From patchwork Wed Sep 20 15:10:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 9961617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 842E8602D8 for ; Wed, 20 Sep 2017 15:10:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 766F029195 for ; Wed, 20 Sep 2017 15:10:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75455291A1; Wed, 20 Sep 2017 15:10:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0D9829199 for ; Wed, 20 Sep 2017 15:10:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751570AbdITPKx (ORCPT ); Wed, 20 Sep 2017 11:10:53 -0400 Received: from arcturus.kleine-koenig.org ([78.47.169.190]:51670 "EHLO arcturus.kleine-koenig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751507AbdITPKx (ORCPT ); Wed, 20 Sep 2017 11:10:53 -0400 Received: by arcturus.kleine-koenig.org (Postfix, from userid 1000) id F23F91B5952; Wed, 20 Sep 2017 17:10:51 +0200 (CEST) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: linux-sparse@vger.kernel.org Subject: [PATCH v2] cgcc: teach cgcc about GNU/kFreeBSD Date: Wed, 20 Sep 2017 17:10:49 +0200 Message-Id: <20170920151049.19939-1-uwe@kleine-koenig.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170914200327.15129-1-uwe@kleine-koenig.org> References: <20170914200327.15129-1-uwe@kleine-koenig.org> MIME-Version: 1.0 Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Uwe Kleine-König --- Changes in v2: - add a Sob line - add a missing ; cgcc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cgcc b/cgcc index a8d7b4f217fe..95d70efc11c5 100755 --- a/cgcc +++ b/cgcc @@ -235,6 +235,9 @@ sub add_specs { } elsif ($spec eq 'linux') { return &add_specs ('unix') . ' -D__linux__=1 -D__linux=1 -Dlinux=linux'; + } elsif ($spec eq 'gnu/kfreebsd') { + return &add_specs ('unix') . + ' -D__FreeBSD_kernel__=1'; } elsif ($spec eq 'openbsd') { return &add_specs ('unix') . ' -D__OpenBSD__=1';