From patchwork Fri Jan 19 06:00:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 125089 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp147412ljf; Thu, 18 Jan 2018 22:01:27 -0800 (PST) X-Google-Smtp-Source: ACJfBotkcvSRm9PoNcKpbinpCZFqmXoSV+fVcQc6eU/gmie1tHdruijeuPFZPBpXjpHMcufaPxZw X-Received: by 2002:a17:902:6a16:: with SMTP id m22-v6mr1057418plk.142.1516341687459; Thu, 18 Jan 2018 22:01:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516341687; cv=none; d=google.com; s=arc-20160816; b=0InQ6ayrlwg5dloYzfrfhhXhWyTzCT9K31W03kRwmBDuSIqnJnwLd7OpuZ9YHoje5m ODz3smYSZxUABSNzC69M5J/AhZooS+5MXb9iDAgX3rm500gikeKEWte2sZ8240zOaORK xYg1p3wYNtj8ksvgmnHIsUP0/QsaxG9456iEGS9BKNbrMWhOaegU3L6yflk3aD1G+Tta sAmpMT8uOSXzW75/uuoae1jlypCjzxIckVZBWa5uT9DddF1rS96JFzaupo9qkUm4wBse tCx+Jt0zvXrJvVUSWWZqaLTz2gb5/+oR7R62iT4Y81B06KjkX9DoPRIzta4woyhi1ram 26yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :delivered-to:sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=PCyzOQaTNXiuocxGhD5JRfVxl7NrE4ToZaMrCGclp9s=; b=MFBs2Tu355u1WDypSJOA0hRvF/TtS9T3tUExU51zy4OtShcmyfOuI3VIIQPmrd0A1Y ugwd3CLOYycOFFbSCg1V/yeXBwyRlPHQ4ztv6pDZTVJrgls6x72ZM1YiZ5PGohl41hbz ywl0MhLXRaQ7KBMRXp791G//vMPY1cRQV8EQ6Av7g2oUL18nHLJZ6gq78aW7N77Yfj4Y m2LUMkFZ+MifAeo2lJ6YSOFB/yRuivS2FSi+sKS+psoGk8VPfWzmu9qJ14oCzdEDVsr7 ridE1XADI5Ozskq6g8pNjxz4sI/5F2w4GjhJiLkmCsWV64EPVSeobjeRD0V3bmkk0k3c hbsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=r4Q2Q4rZ; spf=pass (google.com: domain of newlib-return-15575-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15575-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id k68si7005380pfh.89.2018.01.18.22.01.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 22:01:27 -0800 (PST) Received-SPF: pass (google.com: domain of newlib-return-15575-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=r4Q2Q4rZ; spf=pass (google.com: domain of newlib-return-15575-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15575-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=x+TTQE2FzI40kYIyx/cKOQpNYINoJ8a 66Daq6hzs7jFQLLLApspG58uyNH9T1IaxZeuzaa+P7Ie1j/tMHJEf+Fq2urlei0l zmiWSS6sfzHJBr1wBKmDQu70rlH6KJi6/OXvms532xrMUzfc6adt69saUfQ7uVJ6 Ts9nCrUfK6oU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=wEIm/Dc/ArO0sjMjDfF4AFC+oec=; b=r4Q2Q 4rZMhaTTri0fOPoMkvYQCVpV18+yaGYol0dYKo9cFdaG/FnNes1jIF9Jg5HO1/7v xDYcVqW5x8lvk9FvyeqWd8vhiPGMQxTkEfWv6qyCtvTSYTdNe4npVWlw7UC6TWnl OEw1OFEiVtbql1OjLPIjA+AzIjgE02+wlDyPKs= Received: (qmail 47710 invoked by alias); 19 Jan 2018 06:01:19 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@sourceware.org Received: (qmail 47687 invoked by uid 89); 19 Jan 2018 06:01:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:603, HTo:U*cygwin-patches X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jan 2018 06:01:17 +0000 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 31B094B8C; Fri, 19 Jan 2018 06:01:16 +0000 (UTC) Received: from localhost.localdomain (ovpn-120-72.rdu2.redhat.com [10.10.120.72]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B73BF60BE7; Fri, 19 Jan 2018 06:01:15 +0000 (UTC) From: Yaakov Selkowitz To: cygwin-patches@cygwin.com Cc: newlib@sourceware.org Subject: [PATCH v2 1/3] Guard langinfo.h nl_item from multiple typedefs Date: Fri, 19 Jan 2018 00:00:59 -0600 Message-Id: <20180119060059.6552-1-yselkowi@redhat.com> In-Reply-To: <20180119055837.13016-1-yselkowi@redhat.com> References: <20180119055837.13016-1-yselkowi@redhat.com> This is a prerequisite of adding nl_types.h support to Cygwin. Signed-off-by: Yaakov Selkowitz --- newlib/libc/include/langinfo.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.15.1 diff --git a/newlib/libc/include/langinfo.h b/newlib/libc/include/langinfo.h index 59381d6b6..458b92565 100644 --- a/newlib/libc/include/langinfo.h +++ b/newlib/libc/include/langinfo.h @@ -36,7 +36,10 @@ #include #endif +#ifndef _NL_ITEM_DECLARED typedef int nl_item; +#define _NL_ITEM_DECLARED +#endif enum __nl_item {