Fix -Wundef warning for HAVE_IFUNC
authorAndreas Schwab <schwab@suse.de>
Thu, 31 Jul 2014 10:46:14 +0000 (12:46 +0200)
committerAndreas Schwab <schwab@suse.de>
Thu, 31 Jul 2014 15:05:19 +0000 (17:05 +0200)
ChangeLog
config.h.in
rt/clock-compat.c

index 77bf70d..a32cd68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-07-31  Andreas Schwab  <schwab@suse.de>
+
+       * config.h.in (HAVE_IFUNC): Define to 0.
+       * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
+       definedness.
+
 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
 
        * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
index 97b5571..d612a04 100644 (file)
 /* 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
index 1ccc296..0a3ae40 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <time.h>
 
-#ifdef HAVE_IFUNC
+#if HAVE_IFUNC
 # define COMPAT_REDIRECT(name, proto, arglist)                               \
   __typeof (name) *name##_ifunc (void) asm (#name);                          \
   __typeof (name) *name##_ifunc (void)                                       \