From patchwork Wed Jul 9 11:05:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 368178 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A2427140114 for ; Wed, 9 Jul 2014 21:05:53 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=jgudGe6X7/bWtFqjr1vRPIYZeoFHU FdfZY2zmgDnwZ/1+IjDjnyaG6Rre75nKI0FCopwXKCXzQ8TK2zeloz6MbLDqrAD1 /hDRYMNXincG2PBijAriPQZ2zbXugKmWwdhdX53IvO2djxYr/hpOB6pRhpRw+keh Y3eMuCr/J2iDic= 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:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=WLV+M5TOuLkUVnvdGi7QhL0DamY=; b=OH2 sbc54LW6y+4i0HAIwDkcJmaCiuRUL/w47BHIRBw8baiCxNy2Rpxd9ByorXa9jELm KEHmxC0T8Xus8kmjSFD4bj2Ra5jKg5OtaBCQU6WbmbWpBTb2mcEXLdLRwHQiYhnc Yv3EVsv++Td1EfQcqCxPOcgMaMAC2XyXnFoeG9Ek= Received: (qmail 19291 invoked by alias); 9 Jul 2014 11:05:24 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 19216 invoked by uid 89); 9 Jul 2014 11:05:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Date: Wed, 9 Jul 2014 16:35:16 +0530 From: Siddhesh Poyarekar To: libc-alpha@sourceware.org Subject: [PATCH] Fix -Wundef warning for HAVE_LOCALTIME_R Message-ID: <20140709110516.GV609@spoyarek.pnq.redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) Define HAVE_LOCALTIME_R to 0. There is again a gnulib copy for this in lib/strptime.c, but it is out of sync with our copy. Siddhesh * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R. --- time/strptime_l.c | 1 + 1 file changed, 1 insertion(+) diff --git a/time/strptime_l.c b/time/strptime_l.c index 8fe623d..02680d9 100644 --- a/time/strptime_l.c +++ b/time/strptime_l.c @@ -28,6 +28,7 @@ #include #ifdef _LIBC +#define HAVE_LOCALTIME_R 0 # include "../locale/localeinfo.h" #endif