mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-26 00:57:39 +03:00
tile: improve ABI and #include use in gettimeofday vdso support
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2012-10-30 Chris Metcalf <cmetcalf@tilera.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/tile/init-first.c: Use better #include.
|
||||
* sysdeps/unix/sysv/linux/tile/gettimeofday.c: Use gettimeofday
|
||||
aliases that match existing tile ABI.
|
||||
|
||||
* sysdeps/tile/libm-test-ulps: Account for new tests.
|
||||
|
||||
2012-10-26 Chris Metcalf <cmetcalf@tilera.com>
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
#include <stddef.h>
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
#undef __gettimeofday
|
||||
#include <bits/libc-vdso.h>
|
||||
|
||||
int
|
||||
@@ -34,5 +32,6 @@ __gettimeofday (struct timeval *tv, struct timezone *tz)
|
||||
return INLINE_SYSCALL (gettimeofday, 2, tv, tz);
|
||||
}
|
||||
|
||||
strong_alias (__gettimeofday, __gettimeofday_internal)
|
||||
libc_hidden_def (__gettimeofday)
|
||||
weak_alias (__gettimeofday, gettimeofday)
|
||||
libc_hidden_weak (gettimeofday)
|
||||
|
||||
@@ -31,4 +31,4 @@ _libc_vdso_platform_setup (void)
|
||||
#define VDSO_SETUP _libc_vdso_platform_setup
|
||||
#endif
|
||||
|
||||
#include "../init-first.c"
|
||||
#include <csu/init-first.c>
|
||||
|
||||
Reference in New Issue
Block a user