]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
gettimeofday fills in timezone
authorRoland McGrath <roland@hack.frob.com>
Thu, 25 Apr 2013 22:32:19 +0000 (15:32 -0700)
committerRoland McGrath <roland@hack.frob.com>
Thu, 25 Apr 2013 22:32:19 +0000 (15:32 -0700)
sysdeps/nacl/gettimeofday.c

index f15590c85647d9eef433fc500495c6cd41aaee8f..59aa9989e045ca6f487ab1369f5145ba4fbee917 100644 (file)
@@ -29,8 +29,8 @@ __gettimeofday (struct timeval *tv, struct timezone *tz)
 {
   if (__glibc_unlikely (tz != NULL))
     {
-      errno = ENOTSUP;                  /* XXX ? */
-      return -1;
+      tz->tz_minuteswest = 0;
+      tz->tz_dsttime = 0;
     }
 
   return NACL_CALL (__nacl_irt_basic.gettod (tv), 0);