aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_disk_acl_darwin.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_disk_acl_darwin.c')
-rw-r--r--libarchive/archive_disk_acl_darwin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libarchive/archive_disk_acl_darwin.c b/libarchive/archive_disk_acl_darwin.c
index 0d3bc4e9861f..48ad01651265 100644
--- a/libarchive/archive_disk_acl_darwin.c
+++ b/libarchive/archive_disk_acl_darwin.c
@@ -25,6 +25,8 @@
#include "archive_platform.h"
+#if ARCHIVE_ACL_DARWIN
+
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
@@ -554,3 +556,4 @@ archive_write_disk_set_acls(struct archive *a, int fd, const char *name,
}
return (ret);
}
+#endif /* ARCHIVE_ACL_DARWIN */