From 32ace248091cd0f19de3e523e08cab4526406bc8 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Fri, 16 Apr 2004 01:20:58 +0000 Subject: [PATCH] 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.) --- lib/libarchive/archive_platform.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libarchive/archive_platform.h b/lib/libarchive/archive_platform.h index 89d6ca75c8a..8a5552b80ed 100644 --- a/lib/libarchive/archive_platform.h +++ b/lib/libarchive/archive_platform.h @@ -45,7 +45,10 @@ */ #include /* 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