summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_platform.h
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-04-16 01:20:58 +0000
committerkientzle <kientzle@FreeBSD.org>2004-04-16 01:20:58 +0000
commitf928512a2b8ef04ebab4b8686531ca6373413171 (patch)
tree01a2ef5262f7e02c9dc90bcebfce64e104af432b /lib/libarchive/archive_platform.h
parent1ea56deba6d80d9814e14d9824afaabbd44e2083 (diff)
downloadFreeBSD-src-f928512a2b8ef04ebab4b8686531ca6373413171.zip
FreeBSD-src-f928512a2b8ef04ebab4b8686531ca6373413171.tar.gz
Only enable the ACL restore logic on FreeBSD versions >= 5.0.
Earlier versions of FreeBSD don't support ACLs. Note that the ACL support code in archive_entry is standalone code and unaffected by this. (In particular, it should be possible to manipulate archives containing ACLs even if the ACLs cannot be restored on the current system.)
Diffstat (limited to 'lib/libarchive/archive_platform.h')
-rw-r--r--lib/libarchive/archive_platform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libarchive/archive_platform.h b/lib/libarchive/archive_platform.h
index 89d6ca7..8a5552b 100644
--- a/lib/libarchive/archive_platform.h
+++ b/lib/libarchive/archive_platform.h
@@ -45,7 +45,10 @@
*/
#include <inttypes.h> /* For int64_t, etc. */
+#if __FreeBSD__ > 4
#define HAVE_POSIX_ACL 1
+#endif
+
#define HAVE_CHFLAGS 1
#define HAVE_LUTIMES 1
#define HAVE_LCHMOD 1
OpenPOWER on IntegriCloud