summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--plugins/msmxattr.c3
2 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index fcee7545f..419941330 100644
--- a/configure.ac
+++ b/configure.ac
@@ -698,13 +698,13 @@ AS_IF([test "$with_msm" = yes],[
AC_SUBST(LIBXML2_CFLAGS)
AC_SUBST(LIBXML2_LIBS)
- AC_CHECK_HEADER([attr/xattr.h],[
+ AC_CHECK_HEADER([sys/xattr.h],[
save_LIBS="$LIBS"
AC_CHECK_LIB([attr],[setxattr],[],[
AC_MSG_ERROR([--with-msm given, but setxattr not found in libattr])])
LIBS="$save_LIBS"
],[
- AC_MSG_ERROR([--with-msm given, but attr/xattr.h not found])
+ AC_MSG_ERROR([--with-msm given, but sys/xattr.h not found])
])
AC_CHECK_HEADER([uthash.h],[
save_LIBS="$LIBS"
diff --git a/plugins/msmxattr.c b/plugins/msmxattr.c
index 0cd675245..66011b5b8 100644
--- a/plugins/msmxattr.c
+++ b/plugins/msmxattr.c
@@ -31,13 +31,12 @@
#include <errno.h>
#include <string.h>
-#include <sys/capability.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <pwd.h>
#include <grp.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
#include <uthash.h>
#include <magic.h>
#include "rpmio/rpmlog.h"