about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2011-06-26 03:08:01 -0400
committerUlrich Drepper <drepper@gmail.com>2011-06-26 03:08:01 -0400
commitc2344f56e41b56036d6a16a30b9f32c19aa932d6 (patch)
treea3daa22401412a72ea192a7cf4d34a7c1221ef07
parent68468076c221dc595e955d2c7982a3391ee0772a (diff)
downloadglibc-c2344f56e41b56036d6a16a30b9f32c19aa932d6.tar.gz
glibc-c2344f56e41b56036d6a16a30b9f32c19aa932d6.tar.xz
glibc-c2344f56e41b56036d6a16a30b9f32c19aa932d6.zip
Use __gettimeofday instead of gettimeofday
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/getsysstats.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0745a7dd80..7ba4fd5325 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
 	* elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
diff --git a/sysdeps/unix/sysv/linux/getsysstats.c b/sysdeps/unix/sysv/linux/getsysstats.c
index b74774ffe8..b9bae3df98 100644
--- a/sysdeps/unix/sysv/linux/getsysstats.c
+++ b/sysdeps/unix/sysv/linux/getsysstats.c
@@ -147,7 +147,7 @@ __get_nprocs ()
   INTERNAL_VSYSCALL (clock_gettime, err, 2, CLOCK_REALTIME, &ts);
 #else
   struct timeval ts;
-  gettimeofday (&ts, NULL);
+  __gettimeofday (&ts, NULL);
 #endif
   time_t prev = timestamp;
   atomic_read_barrier ();