diff options
-rw-r--r-- | tar/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/write.c b/tar/write.c index bf59f274..fcf6eecf 100644 --- a/tar/write.c +++ b/tar/write.c @@ -833,7 +833,7 @@ write_hierarchy(struct bsdtar *bsdtar, struct archive *a, const char *path) * If this file/dir is flagged "nodump" and we're * honoring such flags, skip this file/dir. */ -#ifdef HAVE_STRUCT_STAT_ST_FLAGS +#if defined(HAVE_STRUCT_STAT_ST_FLAGS) && defined(UF_NODUMP) /* BSD systems store flags in struct stat */ if (bsdtar->option_honor_nodump && (lst->st_flags & UF_NODUMP)) |