summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-01-03 16:15:25 (GMT)
committerBrad King <brad.king@kitware.com>2012-01-03 16:15:25 (GMT)
commit6af6b96cb391cd5bf176562c3be51ed3a9d995b1 (patch)
treeaadac9f37d26a218f84ccc2a75f7e91b6e80b62e /Utilities/cmlibarchive
parent02d5e40572408efc3733e796dd6a199f4d9ae7f2 (diff)
downloadCMake-6af6b96cb391cd5bf176562c3be51ed3a9d995b1.zip
CMake-6af6b96cb391cd5bf176562c3be51ed3a9d995b1.tar.gz
CMake-6af6b96cb391cd5bf176562c3be51ed3a9d995b1.tar.bz2
libarchive: Do not use MNT_NOATIME if not defined
Use the same pattern already used elsewhere in archive_read_disk_posix.c for ST_NOATIME to use MNT_NOATIME only when defined.
Diffstat (limited to 'Utilities/cmlibarchive')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c b/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c
index 557b26b..7d7eeca 100644
--- a/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c
+++ b/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c
@@ -1321,9 +1321,11 @@ setup_current_filesystem(struct archive_read_disk *a)
t->current_filesystem->synthetic = 0;
#endif
+#if defined(MNT_NOATIME)
if (sfs.f_flags & MNT_NOATIME)
t->current_filesystem->noatime = 1;
else
+#endif
t->current_filesystem->noatime = 0;
#if defined(HAVE_READDIR_R)