summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-03-22 17:35:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:49 -0500
commit4b67f94c6a148d6fecaa90d66ce6893b5feb370a (patch)
tree34d0b84f885c8db5ade005d13962cfc3e233724c /source
parent2d951c91a5ac9779dcb124190e3e7f86cee9efdf (diff)
downloadsamba-4b67f94c6a148d6fecaa90d66ce6893b5feb370a.tar.gz
samba-4b67f94c6a148d6fecaa90d66ce6893b5feb370a.tar.xz
samba-4b67f94c6a148d6fecaa90d66ce6893b5feb370a.zip
r21931: include acl/libacl.h is present
I'm not sure if this should go into 3.0.25... it fixes a compiler warning about a missing acl_get_perm() prototype metze
Diffstat (limited to 'source')
-rw-r--r--source/configure.in3
-rw-r--r--source/lib/replace/system/filesys.h4
2 files changed, 6 insertions, 1 deletions
diff --git a/source/configure.in b/source/configure.in
index 0b2f8bd9053..2f6933b6b60 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -918,7 +918,8 @@ AC_CHECK_HEADERS(shadow.h)
AC_CHECK_HEADERS(nss.h nss_common.h nsswitch.h ns_api.h sys/security.h)
AC_CHECK_HEADERS(syscall.h sys/syscall.h)
-AC_CHECK_HEADERS(sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h)
+AC_CHECK_HEADERS(sys/acl.h acl/libacl.h)
+AC_CHECK_HEADERS(sys/attributes.h attr/xattr.h sys/xattr.h sys/extattr.h sys/uio.h)
AC_CHECK_HEADERS(sys/ea.h sys/proplist.h)
AC_CHECK_HEADERS(sys/cdefs.h glob.h)
diff --git a/source/lib/replace/system/filesys.h b/source/lib/replace/system/filesys.h
index 1e48f7ab404..ae36d17a0a1 100644
--- a/source/lib/replace/system/filesys.h
+++ b/source/lib/replace/system/filesys.h
@@ -41,6 +41,10 @@
#include <sys/acl.h>
#endif
+#ifdef HAVE_SYS_ACL_H
+#include <acl/libacl.h>
+#endif
+
#ifdef HAVE_SYS_FS_S5PARAM_H
#include <sys/fs/s5param.h>
#endif