From 5fe32d598fa96b97d7a281bb4dfefd6986ed52b8 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 20 Oct 2024 15:57:37 +0200 Subject: [PATCH] Use sys/xattr.h instead of attr/xattr.h. --- configure.ac | 2 +- src/psendfile.c | 2 +- src/sendfile.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.11.0