diff options
Diffstat (limited to 'unmaintained/chromium/chromium-futimens.patch')
-rw-r--r-- | unmaintained/chromium/chromium-futimens.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/unmaintained/chromium/chromium-futimens.patch b/unmaintained/chromium/chromium-futimens.patch new file mode 100644 index 0000000000..0662bcad11 --- /dev/null +++ b/unmaintained/chromium/chromium-futimens.patch @@ -0,0 +1,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) { |