diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-05-15 09:33:40 +0200 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-11-28 16:33:12 -0500 |
commit | abeac3adcbfa4b853b9a7d727f5c6b134fad6fe5 (patch) | |
tree | b17e3ee037e218f77199706ee1ea3d2052a580d7 | |
parent | README.md: update (diff) | |
download | elfix-abeac3adcbfa4b853b9a7d727f5c6b134fad6fe5.tar.gz elfix-abeac3adcbfa4b853b9a7d727f5c6b134fad6fe5.tar.bz2 elfix-abeac3adcbfa4b853b9a7d727f5c6b134fad6fe5.zip |
attr/xattr.h is deprecated. Use sys/xattr.h instead
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | scripts/paxmodule.c | 2 | ||||
-rw-r--r-- | src/paxctl-ng.c | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 208d566..84ef48d 100644 --- a/configure.ac +++ b/configure.ac @@ -114,9 +114,9 @@ AS_IF( [test "x$enable_xtpax" != "xno"], [ AC_CHECK_HEADERS( - [attr/xattr.h], + [sys/xattr.h], [], - [AC_MSG_ERROR(["Missing necessary attr/xattr.h"])] + [AC_MSG_ERROR(["Missing necessary sys/xattr.h"])] ) AC_CHECK_LIB( [attr], diff --git a/scripts/paxmodule.c b/scripts/paxmodule.c index 1355f86..6a93420 100644 --- a/scripts/paxmodule.c +++ b/scripts/paxmodule.c @@ -45,7 +45,7 @@ #endif #ifdef XTPAX - #include <attr/xattr.h> + #include <sys/xattr.h> #define PAX_NAMESPACE "user.pax.flags" #endif diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c index d340a43..25396d4 100644 --- a/src/paxctl-ng.c +++ b/src/paxctl-ng.c @@ -49,7 +49,10 @@ #endif #ifdef XTPAX - #include <attr/xattr.h> + #include <sys/xattr.h> + #ifndef ENOATTR + #define ENOATTR ENODATA + #endif #define PAX_NAMESPACE "user.pax.flags" #define CREATE_XT_FLAGS_SECURE 1 #define CREATE_XT_FLAGS_DEFAULT 2 |