summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiankang.fan <jiankang.fan@samsung.com>2020-12-02 21:26:39 +0900
committerjiankang.fan <jiankang.fan@samsung.com>2020-12-02 21:32:10 +0900
commit287097d4d8079b4485870c08cf5675b0bdd37ed9 (patch)
treed4882a8a8495f6981b639a43ca722c4b020bd76d
parente4e49b101522f46f0c2b8acd55554866f1bd37bc (diff)
downloadrpm-287097d4d8079b4485870c08cf5675b0bdd37ed9.tar.gz
rpm-287097d4d8079b4485870c08cf5675b0bdd37ed9.tar.bz2
rpm-287097d4d8079b4485870c08cf5675b0bdd37ed9.zip
attr package's version be upgraded since Tizen 6.5 <attr/xattr.h> header; use <sys/xattr.h> instead Change-Id: I5a6dd9a2923ec0d2a4f15f9e608219448bdaa634 Signed-off-by: jiankang.fan <jiankang.fan@samsung.com>
-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"