As with gettimeofday, avoid vdso for clang-compiled time()

This commit is contained in:
Stan Shebs 2018-03-13 11:37:02 -07:00
parent 491d419cdd
commit d41bed3ce0

View File

@ -18,7 +18,8 @@
#include <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>
@ -57,3 +58,5 @@ time (time_t *t)
}
#endif
libc_hidden_weak (time)