diff options
author | Brad King <brad.king@kitware.com> | 2011-12-22 21:36:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-12-23 21:04:59 (GMT) |
commit | 8b7ee30bf4fd1b4aebc7033dc8dbcbb5f7c88c83 (patch) | |
tree | d754a1ca1e677deec642c83c0043d6a5fef476ae | |
parent | 680fc0eda85d660057999c9a7e7cfa2d5eeeae0a (diff) | |
download | CMake-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.c | 2 |
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. */ |