aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_disk_acl_linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_disk_acl_linux.c')
-rw-r--r--libarchive/archive_disk_acl_linux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libarchive/archive_disk_acl_linux.c b/libarchive/archive_disk_acl_linux.c
index 6e9288d221f9..3928f3d6fafd 100644
--- a/libarchive/archive_disk_acl_linux.c
+++ b/libarchive/archive_disk_acl_linux.c
@@ -27,6 +27,8 @@
#include "archive_platform.h"
+#if ARCHIVE_ACL_LIBACL || ARCHIVE_ACL_LIBRICHACL
+
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
@@ -738,3 +740,4 @@ archive_write_disk_set_acls(struct archive *a, int fd, const char *name,
#endif /* ARCHIVE_ACL_LIBACL */
return (ret);
}
+#endif /* ARCHIVE_ACL_LIBACL || ARCHIVE_ACL_LIBRICHACL */