diff mbox series

t_attr_corruption: fix xattr.h include problems

Message ID 20190220172005.GJ6477@magnolia (mailing list archive)
State Accepted
Headers show
Series t_attr_corruption: fix xattr.h include problems | expand

Commit Message

Darrick J. Wong Feb. 20, 2019, 5:20 p.m. UTC
From: Darrick J. Wong <darrick.wong@oracle.com>

Apparently newer versions of libattr (which haven't yet been picked up
by Debian or Ubuntu) don't ship xattr.h anymore, because we're supposed
to use the libc version in sys/xattr.h.  So do that.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
 src/t_attr_corruption.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Sterba Feb. 21, 2019, 6:09 p.m. UTC | #1
On Wed, Feb 20, 2019 at 09:20:05AM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
> 
> Apparently newer versions of libattr (which haven't yet been picked up
> by Debian or Ubuntu) don't ship xattr.h anymore, because we're supposed
> to use the libc version in sys/xattr.h.  So do that.
> 
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
> ---
>  src/t_attr_corruption.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/t_attr_corruption.c b/src/t_attr_corruption.c
> index 1fa5e41f..f26611f9 100644
> --- a/src/t_attr_corruption.c
> +++ b/src/t_attr_corruption.c
> @@ -27,7 +27,7 @@
>  #include <string.h>
>  #include <stdint.h>
>  #include <unistd.h>
> -#include <attr/xattr.h>
> +#include <sys/xattr.h>

Works for me, thanks

Reviewed-by: David Sterba <dsterba@suse.com>
diff mbox series

Patch

diff --git a/src/t_attr_corruption.c b/src/t_attr_corruption.c
index 1fa5e41f..f26611f9 100644
--- a/src/t_attr_corruption.c
+++ b/src/t_attr_corruption.c
@@ -27,7 +27,7 @@ 
 #include <string.h>
 #include <stdint.h>
 #include <unistd.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
 
 void die(const char *msg)
 {