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.
This commit is contained in:
parent
02d5e40572
commit
6af6b96cb3
|
@ -1321,9 +1321,11 @@ setup_current_filesystem(struct archive_read_disk *a)
|
||||||
t->current_filesystem->synthetic = 0;
|
t->current_filesystem->synthetic = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(MNT_NOATIME)
|
||||||
if (sfs.f_flags & MNT_NOATIME)
|
if (sfs.f_flags & MNT_NOATIME)
|
||||||
t->current_filesystem->noatime = 1;
|
t->current_filesystem->noatime = 1;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
t->current_filesystem->noatime = 0;
|
t->current_filesystem->noatime = 0;
|
||||||
|
|
||||||
#if defined(HAVE_READDIR_R)
|
#if defined(HAVE_READDIR_R)
|
||||||
|
|
Loading…
Reference in New Issue