Fix -Wundef warning for HAVE_IFUNC

This commit is contained in:
Andreas Schwab 2014-07-31 12:46:14 +02:00
parent 05f3633da4
commit 6c9578a24b
3 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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

View 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) \