diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-09-06 00:12:18 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-09-06 00:12:18 -0400 |
commit | ef60624956e93df1da329a48570776ed963b1916 (patch) | |
tree | 21743f4149f142ca1e4614e1f59c929573745024 /sysdeps/unix/sysv/linux/x86_64/gettimeofday.c | |
parent | 6585cb60ee7aafc3301c402dda12d6771dfb7fa3 (diff) | |
download | glibc-ef60624956e93df1da329a48570776ed963b1916.tar glibc-ef60624956e93df1da329a48570776ed963b1916.tar.gz glibc-ef60624956e93df1da329a48570776ed963b1916.tar.bz2 glibc-ef60624956e93df1da329a48570776ed963b1916.zip |
Prefer real syscalls instead of vsyscalls on x86-64 outside libc.so
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64/gettimeofday.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/gettimeofday.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/gettimeofday.c b/sysdeps/unix/sysv/linux/x86_64/gettimeofday.c index 1a773d6412..56171bcfca 100644 --- a/sysdeps/unix/sysv/linux/x86_64/gettimeofday.c +++ b/sysdeps/unix/sysv/linux/x86_64/gettimeofday.c @@ -37,11 +37,12 @@ gettimeofday_ifunc (void) __asm (".type __gettimeofday, %gnu_indirect_function"); #else # include <sys/time.h> +# include <sysdep.h> int __gettimeofday (struct timeval *tv, struct timezone *tz) { - return ((int (*) (struct timeval *, struct timezone *)) VSYSCALL_ADDR_vgettimeofday) (tv, tz); + return INLINE_SYSCALL (gettimeofday, 2, tv, tz); } #endif |