summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in2
-rw-r--r--source3/include/includes.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 27d39d13ca..c32bd8fa78 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -624,7 +624,7 @@ AC_CHECK_HEADERS(shadow.h netinet/ip.h netinet/tcp.h netinet/in_systm.h netinet/
AC_CHECK_HEADERS(nss.h nss_common.h nsswitch.h ns_api.h sys/security.h security/pam_appl.h security/pam_modules.h)
AC_CHECK_HEADERS(stropts.h poll.h)
AC_CHECK_HEADERS(sys/capability.h syscall.h sys/syscall.h)
-AC_CHECK_HEADERS(sys/acl.h sys/attributes.h attr/xattr.h sys/cdefs.h glob.h)
+AC_CHECK_HEADERS(sys/acl.h sys/attributes.h attr/xattr.h sys/xattr.h sys/cdefs.h glob.h)
# For experimental utmp support (lastlog on some BSD-like systems)
AC_CHECK_HEADERS(utmp.h utmpx.h lastlog.h)
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 7f5c111682..65eebedc6c 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -441,6 +441,10 @@
#include <attr/xattr.h>
#endif
+#if HAVE_SYS_XATTR_H
+#include <sys/xattr.h>
+#endif
+
#if HAVE_LOCALE_H
#include <locale.h>
#endif