]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fix build error on Tru64, where UF_NODUMP is not defined
authorBjörn Jacke <bjacke@gmail.com>
Tue, 19 Jan 2010 23:38:22 +0000 (18:38 -0500)
committerBjörn Jacke <bjacke@gmail.com>
Tue, 19 Jan 2010 23:38:22 +0000 (18:38 -0500)
SVN-Revision: 1837

tar/write.c

index bf59f27467453025d3447dd7e68e50b665c2e5d5..fcf6eecfce4f246771844ca062fc4364279b25c5 100644 (file)
@@ -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))