]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue 214: Don't require MNT_NOATIME
authorTim Kientzle <kientzle@gmail.com>
Fri, 30 Dec 2011 06:54:03 +0000 (01:54 -0500)
committerTim Kientzle <kientzle@gmail.com>
Fri, 30 Dec 2011 06:54:03 +0000 (01:54 -0500)
SVN-Revision: 4038

libarchive/archive_read_disk_posix.c

index 7a9c3d8671e5d426de9946080f18444ab05e8f43..b81ab30fe7194e31dfce27049e5bcb13f63a9098 100644 (file)
@@ -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)