mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-13 13:37:38 +08:00
Use __gettimeofday instead of gettimeofday
This commit is contained in:
parent
68468076c2
commit
c2344f56e4
@ -1,3 +1,8 @@
|
|||||||
|
2011-06-23 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
|
||||||
|
__gettimeofday instead of gettimeofday.
|
||||||
|
|
||||||
2011-06-26 Ulrich Drepper <drepper@gmail.com>
|
2011-06-26 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
* elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
|
* elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
|
||||||
|
@ -147,7 +147,7 @@ __get_nprocs ()
|
|||||||
INTERNAL_VSYSCALL (clock_gettime, err, 2, CLOCK_REALTIME, &ts);
|
INTERNAL_VSYSCALL (clock_gettime, err, 2, CLOCK_REALTIME, &ts);
|
||||||
#else
|
#else
|
||||||
struct timeval ts;
|
struct timeval ts;
|
||||||
gettimeofday (&ts, NULL);
|
__gettimeofday (&ts, NULL);
|
||||||
#endif
|
#endif
|
||||||
time_t prev = timestamp;
|
time_t prev = timestamp;
|
||||||
atomic_read_barrier ();
|
atomic_read_barrier ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user