]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Do not use ST_NOATIME if not defined
authorBrad King <brad.king@kitware.com>
Wed, 11 Jan 2012 13:15:36 +0000 (08:15 -0500)
committerBrad King <brad.king@kitware.com>
Wed, 11 Jan 2012 13:15:36 +0000 (08:15 -0500)
Use the same pattern already used elsewhere in archive_read_disk_posix.c
to use ST_NOATIME only when defined.

SVN-Revision: 4131

libarchive/archive_read_disk_posix.c

index 8300438c07a9c293472f17da041d917d55f78074..0a57f3abb4bf779818e8062844b0f996088011f7 100644 (file)
@@ -1533,9 +1533,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. */