aboutsummaryrefslogtreecommitdiffstats
path: root/testing/chromium/chromium-futimens.patch
blob: 0662bcad1155319d4ffe192640852901f77e5ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- chromium-13.0.754.0.orig/base/platform_file_posix.cc
+++ chromium-13.0.754.0/base/platform_file_posix.cc
@@ -167,10 +167,15 @@
   if (file < 0)
     return false;
 
-  timeval times[2];
-  times[0] = last_access_time.ToTimeVal();
-  times[1] = last_modified_time.ToTimeVal();
-  return !futimes(file, times);
+  timespec times[2];
+
+  times[0].tv_sec = last_access_time.ToTimeT();
+  times[0].tv_nsec = 0;
+
+  times[1].tv_sec = last_modified_time.ToTimeT();
+  times[1].tv_nsec = 0;
+
+  return !futimens(file, times);
 }
 
 bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info) {