diff options
author | Stan Shebs <stanshebs@google.com> | 2018-03-02 08:39:57 -0800 |
---|---|---|
committer | Stan Shebs <stanshebs@google.com> | 2019-04-30 18:23:43 -0700 |
commit | d3f21e261557f336053fd52cc468a8957cb1db73 (patch) | |
tree | b55b5a1c973588badb3fd9a9f7a2f717f2a820ba | |
parent | 583e97d1968a487838166aa5638f6ebd7206fff9 (diff) | |
download | glibc-d3f21e261557f336053fd52cc468a8957cb1db73.tar.gz glibc-d3f21e261557f336053fd52cc468a8957cb1db73.tar.xz glibc-d3f21e261557f336053fd52cc468a8957cb1db73.zip |
Bypass gettimeofday ifunc if using clang
-rw-r--r-- | sysdeps/unix/sysv/linux/x86/gettimeofday.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/x86/gettimeofday.c b/sysdeps/unix/sysv/linux/x86/gettimeofday.c index 8886ccd707..45f845670b 100644 --- a/sysdeps/unix/sysv/linux/x86/gettimeofday.c +++ b/sysdeps/unix/sysv/linux/x86/gettimeofday.c @@ -18,7 +18,8 @@ #include <sys/time.h> -#ifdef SHARED +/* Clang ifunc support works, but differently enough that this code breaks. */ +#if defined(SHARED) && !defined(__clang__) # include <dl-vdso.h> # include <errno.h> |