diff options
author | Ken Dawson <dawsonwu@rahul.net> | 2015-01-03 04:08:18 +0000 |
---|---|---|
committer | Przemyslaw Pawelczyk <przemoc@gmail.com> | 2015-02-08 01:40:10 +0100 |
commit | 6c59fec448a44124a643ad22a940597e1f325266 (patch) | |
tree | 71c7a67d458adbfd0ecc78dcda664eab19ff60cc | |
parent | efce68713ffa1c2d3e8c22ca783a7e1010a3ddb3 (diff) |
Use sys/xattr.h instead of attr/xattr.h.
xattr.h from libattr is not necessary, because glibc ships its own
xattr.h for many years already (since v2.3, so it's like 13 years).
libattr's header included errno.h, thus now it needs to be included
explicitly.
Signed-off-by: Przemyslaw Pawelczyk <przemoc@gmail.com>
-rw-r--r-- | metaentry.c | 3 | ||||
-rw-r--r-- | metastore.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/metaentry.c b/metaentry.c index 1f45fca..3ed37e8 100644 --- a/metaentry.c +++ b/metaentry.c @@ -25,13 +25,14 @@ #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> -#include <attr/xattr.h> +#include <sys/xattr.h> #include <limits.h> #include <dirent.h> #include <sys/mman.h> #include <utime.h> #include <fcntl.h> #include <stdint.h> +#include <errno.h> #include "metastore.h" #include "metaentry.h" diff --git a/metastore.c b/metastore.c index 323525a..83f8555 100644 --- a/metastore.c +++ b/metastore.c @@ -23,10 +23,11 @@ #include <sys/stat.h> #include <getopt.h> #include <utime.h> -#include <attr/xattr.h> +#include <sys/xattr.h> #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <errno.h> #include "metastore.h" #include "settings.h" |