diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-05-06 08:18:45 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-05-06 08:19:15 -0500 |
commit | b6c00fd50fb0e2166f1856e9813c512d6f20714f (patch) | |
tree | f656096a3b02cb41efa5504e2b8e66239cae96d6 /testing/chromium/chromium-futimens.patch | |
parent | fab2389fa813a1d3d7441d733fd8adb2144d1cac (diff) | |
download | aports-b6c00fd50fb0e2166f1856e9813c512d6f20714f.tar.bz2 aports-b6c00fd50fb0e2166f1856e9813c512d6f20714f.tar.xz |
testing/chromium: new aport, not actually enabled on any architectures yet
Diffstat (limited to 'testing/chromium/chromium-futimens.patch')
-rw-r--r-- | testing/chromium/chromium-futimens.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/chromium/chromium-futimens.patch b/testing/chromium/chromium-futimens.patch new file mode 100644 index 0000000000..0662bcad11 --- /dev/null +++ b/testing/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) { |