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: 1978 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