summaryrefslogtreecommitdiff
path: root/libs/utils
diff options
context:
space:
mode:
author Android (Google) Code Review <android-gerrit@google.com> 2009-05-06 09:56:55 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2009-05-06 09:56:55 -0700
commit8f0e556bb41c1e124612a27aaa52b2b6e9237ecd (patch)
tree1332bf360d5650c4a7bb7ea3fd5fc17eb8929aa9 /libs/utils
parentf722b32822ab78f4bebc49ab6f028fdacb0162b6 (diff)
parent7fca56513587bbf899d4d281a43d7eb0819da9af (diff)
Merge change 1074
* changes: fix the sim build. disables the tests for now.
Diffstat (limited to 'libs/utils')
-rw-r--r--libs/utils/file_backup_helper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/utils/file_backup_helper.cpp b/libs/utils/file_backup_helper.cpp
index 16cbb6ec4e67..111f88d9f3be 100644
--- a/libs/utils/file_backup_helper.cpp
+++ b/libs/utils/file_backup_helper.cpp
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <utime.h>
#include <fcntl.h>
#include <zlib.h>
@@ -224,7 +225,8 @@ back_up_files(int oldSnapshotFD, int newSnapshotFD, int oldDataStream,
}
s.modTime_sec = st.st_mtime;
- s.modTime_nsec = st.st_mtime_nsec;
+ s.modTime_nsec = 0; // workaround sim breakage
+ //s.modTime_nsec = st.st_mtime_nsec;
s.size = st.st_size;
s.crc32 = compute_crc32(realFilename);