From: Björn Jacke Date: Tue, 19 Jan 2010 23:38:22 +0000 (-0500) Subject: fix build error on Tru64, where UF_NODUMP is not defined X-Git-Tag: v2.8.0~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c2259eee5565e045e2d2ff6c932f0b3901a42c0;p=thirdparty%2Flibarchive.git fix build error on Tru64, where UF_NODUMP is not defined SVN-Revision: 1837 --- diff --git a/tar/write.c b/tar/write.c index bf59f2746..fcf6eecfc 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))