]> Dogcows Code - chaz/tar/blobdiff - lib/xattr-at.h
Use correct headers/libraries when providing xattr support
[chaz/tar] / lib / xattr-at.h
index 1ee534dd9856febd5e13ebc10e3e4f5d3fdf04bb..3c6eb7268f8772a40d0c566859a9573079ffd1be 100644 (file)
 #define XATTRS_AT_H
 
 #include <sys/types.h>
-#include <attr/xattr.h>
+#if defined(HAVE_SYS_XATTR_H)
+# include <sys/xattr.h>
+#elif defined(HAVE_ATTR_XATTR_H)
+# include <attr/xattr.h>
+#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,
This page took 0.018509 seconds and 4 git commands to generate.