about summary refs log tree commit diff
path: root/sysdeps/posix/gettimeofday.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/gettimeofday.c')
-rw-r--r--sysdeps/posix/gettimeofday.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/gettimeofday.c b/sysdeps/posix/gettimeofday.c
index c3b8108258..3c079a5af2 100644
--- a/sysdeps/posix/gettimeofday.c
+++ b/sysdeps/posix/gettimeofday.c
@@ -56,7 +56,7 @@ __gettimeofday (tv, tz)
       save_tzname[0] = __tzname[0];
       save_tzname[1] = __tzname[1];
 
-      tmp = localtime (&timer, &tm);
+      tmp = localtime_r (&timer, &tm);
 
       tz->tz_minuteswest = __timezone / 60;
       tz->tz_dsttime = __daylight;