aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_disk_acl_sunos.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_disk_acl_sunos.c')
-rw-r--r--libarchive/archive_disk_acl_sunos.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libarchive/archive_disk_acl_sunos.c b/libarchive/archive_disk_acl_sunos.c
index 7d806b016f90..bc84fd6782f3 100644
--- a/libarchive/archive_disk_acl_sunos.c
+++ b/libarchive/archive_disk_acl_sunos.c
@@ -25,6 +25,8 @@
#include "archive_platform.h"
+#if ARCHIVE_ACL_SUNOS
+
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
@@ -816,3 +818,4 @@ archive_write_disk_set_acls(struct archive *a, int fd, const char *name,
#endif
return (ret);
}
+#endif /* ARCHIVE_ACL_SUNOS */