summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-12-22 21:36:14 (GMT)
committerBrad King <brad.king@kitware.com>2011-12-23 21:04:59 (GMT)
commit8b7ee30bf4fd1b4aebc7033dc8dbcbb5f7c88c83 (patch)
treed754a1ca1e677deec642c83c0043d6a5fef476ae
parent680fc0eda85d660057999c9a7e7cfa2d5eeeae0a (diff)
downloadCMake-8b7ee30bf4fd1b4aebc7033dc8dbcbb5f7c88c83.zip
CMake-8b7ee30bf4fd1b4aebc7033dc8dbcbb5f7c88c83.tar.gz
CMake-8b7ee30bf4fd1b4aebc7033dc8dbcbb5f7c88c83.tar.bz2
libarchive: Do not use ST_NOATIME if not defined
Use the same pattern already used elsewhere in archive_read_disk_posix.c to use ST_NOATIME only when defined.
-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 7a9c3d8..2b7f778 100644
--- a/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c
+++ b/Utilities/cmlibarchive/libarchive/archive_read_disk_posix.c
@@ -1390,9 +1390,11 @@ setup_current_filesystem(struct archive_read_disk *a)
else
t->current_filesystem->remote = 1;
+#if defined(ST_NOATIME)
if (sfs.f_flag & ST_NOATIME)
t->current_filesystem->noatime = 1;
else
+#endif
t->current_filesystem->noatime = 0;
/* Set maximum filename length. */