From: Fredrik Tolf Date: Sun, 20 Oct 2024 13:57:37 +0000 (+0200) Subject: Use sys/xattr.h instead of attr/xattr.h. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=5fe32d598fa96b97d7a281bb4dfefd6986ed52b8;p=ashd.git Use sys/xattr.h instead of attr/xattr.h. --- diff --git a/configure.ac b/configure.ac index 5f2d06b..fcecf84 100644 --- a/configure.ac +++ b/configure.ac @@ -84,7 +84,7 @@ if test -z "$HAS_XATTR"; then AC_CHECK_LIB(attr, getxattr, [:], [HAS_XATTR=no]) fi if test -z "$HAS_XATTR"; then - AC_CHECK_HEADER(attr/xattr.h, [], [HAS_XATTR=no]) + AC_CHECK_HEADER(sys/xattr.h, [], [HAS_XATTR=no]) fi if test "$HAS_XATTR" != no; then HAS_XATTR=yes; fi if test "$with_xattr" = yes -a "$HAS_XATTR" = no; then diff --git a/src/psendfile.c b/src/psendfile.c index 464440a..ae5f7d2 100644 --- a/src/psendfile.c +++ b/src/psendfile.c @@ -42,7 +42,7 @@ #include #ifdef HAVE_XATTR -#include +#include #endif static magic_t cookie; diff --git a/src/sendfile.c b/src/sendfile.c index 85ea9bb..3a81e80 100644 --- a/src/sendfile.c +++ b/src/sendfile.c @@ -37,7 +37,7 @@ #include #ifdef HAVE_XATTR -#include +#include #endif static magic_t cookie = NULL;