From 287097d4d8079b4485870c08cf5675b0bdd37ed9 Mon Sep 17 00:00:00 2001 From: "jiankang.fan" Date: Wed, 2 Dec 2020 21:26:39 +0900 Subject: Fix building issue for tizen_base(configure: error: --with-msm given, but attr/xattr.h not found). attr package's version be upgraded since Tizen 6.5 header; use instead Change-Id: I5a6dd9a2923ec0d2a4f15f9e608219448bdaa634 Signed-off-by: jiankang.fan --- configure.ac | 4 ++-- plugins/msmxattr.c | 3 +-- 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 #include -#include #include #include #include #include #include -#include +#include #include #include #include "rpmio/rpmlog.h" -- cgit v1.2.3