Let time and gettimeofday use vdso by removing old clang workaround

This commit is contained in:
Stan Shebs 2020-10-06 13:08:18 -07:00 committed by Fangrui Song
parent e62db8fce4
commit d548adb4ef
2 changed files with 2 additions and 8 deletions

View File

@ -18,8 +18,7 @@
#include <sys/time.h>
/* Clang ifunc support works, but differently enough that this code breaks. */
#if defined(SHARED) && !defined(__clang__)
#ifdef SHARED
# include <dl-vdso.h>
# include <errno.h>

View File

@ -18,8 +18,7 @@
#include <time.h>
/* Clang ifunc support works, but differently enough that this code breaks. */
#if defined(SHARED) && !defined(__clang__)
#ifdef SHARED
#include <dl-vdso.h>
#include <errno.h>
@ -58,7 +57,3 @@ time (time_t *t)
}
#endif
#if defined(__clang__)
libc_hidden_weak (time)
#endif