X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftar;a=blobdiff_plain;f=lib%2Fxattr-at.h;h=3c6eb7268f8772a40d0c566859a9573079ffd1be;hp=1ee534dd9856febd5e13ebc10e3e4f5d3fdf04bb;hb=48a546b02c9e2c4e72a8aa83a2e36d1b8f24536b;hpb=46da9968df4bad8ce3899f98000aa5612375d29f diff --git a/lib/xattr-at.h b/lib/xattr-at.h index 1ee534d..3c6eb72 100644 --- a/lib/xattr-at.h +++ b/lib/xattr-at.h @@ -20,7 +20,15 @@ #define XATTRS_AT_H #include -#include +#if defined(HAVE_SYS_XATTR_H) +# include +#elif defined(HAVE_ATTR_XATTR_H) +# include +#endif + +#ifndef ENOATTR +# define ENOATTR ENODATA /* No such attribute */ +#endif /* These are the dir-fd-relative variants of the functions without the "at" suffix. For example, setxattrat (AT_FDCWD, path, name, value, size,