btrfs-progs: include <sys/xattr.h> instead of <attr/xattr.h>
authorChristophe Vu-Brugier <cvubrugier@yahoo.fr>
Sun, 2 Feb 2014 13:01:20 +0000 (14:01 +0100)
committerChris Mason <clm@fb.com>
Fri, 21 Mar 2014 13:23:31 +0000 (06:23 -0700)
The `btrfs` and `mkfs.btrfs` binaries are not linked against libattr
so the correct header to include is <sys/xattr.h>.

This fixes the build when attr header files are not installed.

Signed-off-by: Christophe Vu-Brugier <cvubrugier@yahoo.fr>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-restore.c
mkfs.c

index 41a2bee..07a0e63 100644 (file)
@@ -34,7 +34,7 @@
 #include <regex.h>
 #include <getopt.h>
 #include <sys/types.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
 
 #include "ctree.h"
 #include "disk-io.h"
diff --git a/mkfs.c b/mkfs.c
index d238b5c..2dc90c2 100644 (file)
--- a/mkfs.c
+++ b/mkfs.c
@@ -34,7 +34,7 @@
 #include <getopt.h>
 #include <uuid/uuid.h>
 #include <ctype.h>
-#include <attr/xattr.h>
+#include <sys/xattr.h>
 #include <blkid/blkid.h>
 #include <ftw.h>
 #include "ctree.h"