Skip to contentSkip to conversation

t_attr_corruption: fix xattr.h include problems

PATCH In review Darrick J. Wong 2 participants 2 messages Feb 20, 2019 – Feb 21, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t_attr_corruption: fix xattr.h include problems

From: Darrick J. Wong <[email protected]>

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.

---
 src/t_attr_corruption.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/t_attr_corruption.c +1 -1
index 1fa5e41f..f26611f9 100644
@@ -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)
 {
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Darrick J. Wong

From: Darrick J. Wong <[email protected]>

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.

---
 src/t_attr_corruption.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/t_attr_corruption.c +0 -0
index 1fa5e41f..f26611f9 100644

src/t_attr_corruption.c line 30

Quoted 5 lines
src/t_attr_corruption.c +1 -1
@@ -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