btrfs-progs: include <sys/xattr.h> instead of <attr/xattr.h>

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>
master
Christophe Vu-Brugier 2014-02-02 14:01:20 +01:00 committed by Chris Mason
parent 4bcfcb47fa
commit b5fe148715
2 changed files with 2 additions and 2 deletions

View 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"

2
mkfs.c
View File

@ -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"