From patchwork Thu Jul 31 10:54:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Schwab X-Patchwork-Id: 375217 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 90A211400E7 for ; Thu, 31 Jul 2014 20:58:52 +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:from:to:subject:date:message-id:mime-version :content-type; q=dns; s=default; b=HyC5kVk76zMTz+w96SKmQ5h0gnfwb pq+wUXtXZBgn6Fjbih09LszDCMgCC3oozpqOrnQ3B/Qrz7kgPWA5TrGw37NN7jTU gAy3wKX5tzRUW0SFqLikRSl1S7qSwqwPG3RgDQv7csLS3XeBNHhJl/16ziyMWkM4 h+LLzrftQaATsI= 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:subject:date:message-id:mime-version :content-type; s=default; bh=bBZyQr74YtpiLZOAhb8pHFSJe0I=; b=xAl QK9jefm+PE4amj4vEHFex7NO2Cz5/BqvAZdHRQ5K+GFYDl+teFhHLB/fE86mShZf HPcEe3NBpWNjAQ1JIBOHMhTGwPioMNwskSJ15Kkhm264NImWRE7IGGVTAqixAt9l hVLggxf2q+NrKU27yeLnn1DujFgU03gY2221pzWA= Received: (qmail 27038 invoked by alias); 31 Jul 2014 10:54:51 -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 26784 invoked by uid 89); 31 Jul 2014 10:54:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx2.suse.de From: Andreas Schwab To: libc-alpha@sourceware.org Subject: [PATCH] Fix -Wundef warning for HAVE_IFUNC X-Yow: Is it FUN to be a MIDGET? Date: Thu, 31 Jul 2014 12:54:43 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Tested on m68k-suse-linux. Andreas. * config.h.in (HAVE_IFUNC): Define to 0. * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not definedness. --- config.h.in | 4 ++-- rt/clock-compat.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.h.in b/config.h.in index 97b5571..d612a04 100644 --- a/config.h.in +++ b/config.h.in @@ -194,8 +194,8 @@ /* Define if the dynamic linker should consult an ld.so.cache file. */ #undef USE_LDCONFIG -/* Define if STT_GNU_IFUNC support actually works. */ -#undef HAVE_IFUNC +/* Define to 1 if STT_GNU_IFUNC support actually works. */ +#define HAVE_IFUNC 0 /* Define if linux/fanotify.h is available. */ #undef HAVE_LINUX_FANOTIFY_H diff --git a/rt/clock-compat.c b/rt/clock-compat.c index 1ccc296..0a3ae40 100644 --- a/rt/clock-compat.c +++ b/rt/clock-compat.c @@ -27,7 +27,7 @@ #include -#ifdef HAVE_IFUNC +#if HAVE_IFUNC # define COMPAT_REDIRECT(name, proto, arglist) \ __typeof (name) *name##_ifunc (void) asm (#name); \ __typeof (name) *name##_ifunc (void) \