]> arthur.barton.de Git - netatalk.git/blobdiff - bin/ad/ad_util.c
Rev version, fix compilation error when ACL support is not available
[netatalk.git] / bin / ad / ad_util.c
index 8ed6585748c55e6494416588405194011c21e7c7..58e333e7177cd52cd2420a3f9970332b84710409 100644 (file)
@@ -33,7 +33,6 @@
 #endif /* HAVE_CONFIG_H */
 
 #include <sys/types.h>
-#include <sys/acl.h>
 #include <sys/param.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
 #include <string.h>
 #include <libgen.h>
 
+#ifdef HAVE_SOLARIS_ACLS
+#include <sys/acl.h>
+#endif  /* HAVE_SOLARIS_ACLS */
+
+#ifdef HAVE_POSIX_ACLS
+#include <sys/types.h>
+#include <sys/acl.h>
+#endif /* HAVE_POSIX_ACLS */
+
 #include <atalk/util.h>
 #include <atalk/cnid.h>
 #include <atalk/volinfo.h>