From 2a98fb9fb1eda1f18cf1555634a7c33f3147234c Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Wed, 6 May 2009 12:55:46 -0400 Subject: [PATCH] fix the sim build. disables the tests for now. --- include/utils/backup_helpers.h | 2 +- libs/utils/file_backup_helper.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/utils/backup_helpers.h b/include/utils/backup_helpers.h index f70444df6..61bee340d 100644 --- a/include/utils/backup_helpers.h +++ b/include/utils/backup_helpers.h @@ -4,7 +4,7 @@ int back_up_files(int oldSnapshotFD, int newSnapshotFD, int oldDataStream, char const* fileBase, char const* const* files, int fileCount); -#define TEST_BACKUP_HELPERS 1 +#define TEST_BACKUP_HELPERS 0 #if TEST_BACKUP_HELPERS int backup_helper_test_empty(); diff --git a/libs/utils/file_backup_helper.cpp b/libs/utils/file_backup_helper.cpp index 16cbb6ec4..111f88d9f 100644 --- a/libs/utils/file_backup_helper.cpp +++ b/libs/utils/file_backup_helper.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -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);