Fix include for xattr.h

The proper file that should be included is `sys/xattr.h` as that comes from
`glibc` and not `attr/xattr.h` which ships with the `attr` utility.

New enough `attr` utility (at least 2.4.48 in my case) even includes a #warning
in `attr/xattr.h` for projects that still have this mistake in the code.
This commit is contained in:
Martin Kletzander
2018-11-22 23:55:24 +01:00
committed by Richard W.M. Jones
parent 724d7877f8
commit d3478036a8
4 changed files with 3 additions and 12 deletions

View File

@@ -41,13 +41,9 @@
#include <acl/libacl.h>
#endif
#ifdef HAVE_ATTR_XATTR_H
#include <attr/xattr.h>
#else
#ifdef HAVE_SYS_XATTR_H
#include <sys/xattr.h>
#endif
#endif
#include <guestfs.h>
#include "guestfs-utils.h"