]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Bypass gettimeofday ifunc if using clang
authorStan Shebs <stanshebs@google.com>
Fri, 2 Mar 2018 16:39:57 +0000 (08:39 -0800)
committerStan Shebs <stanshebs@google.com>
Fri, 2 Mar 2018 16:39:57 +0000 (08:39 -0800)
sysdeps/unix/sysv/linux/x86/gettimeofday.c

index e125859c1a28262462b382257b369324fa500794..614971bffb0f7b92420a3c01ca5224bf68d37b05 100644 (file)
@@ -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>