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.
This commit is contained in:
parent
680fc0eda8
commit
8b7ee30bf4
|
@ -1390,9 +1390,11 @@ setup_current_filesystem(struct archive_read_disk *a)
|
||||||
else
|
else
|
||||||
t->current_filesystem->remote = 1;
|
t->current_filesystem->remote = 1;
|
||||||
|
|
||||||
|
#if defined(ST_NOATIME)
|
||||||
if (sfs.f_flag & ST_NOATIME)
|
if (sfs.f_flag & ST_NOATIME)
|
||||||
t->current_filesystem->noatime = 1;
|
t->current_filesystem->noatime = 1;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
t->current_filesystem->noatime = 0;
|
t->current_filesystem->noatime = 0;
|
||||||
|
|
||||||
/* Set maximum filename length. */
|
/* Set maximum filename length. */
|
||||||
|
|
Loading…
Reference in New Issue