]> Dogcows Code - chaz/tar/blobdiff - lib/xattr-at.h
Use correct headers/libraries when providing xattr support
[chaz/tar] / lib / xattr-at.h
index 360245c3f3d675665a0129335c945f9c6309c8a9..3c6eb7268f8772a40d0c566859a9573079ffd1be 100644 (file)
@@ -1,7 +1,7 @@
 /* Prototypes for openat-style fd-relative functions for operating with
    extended file attributes.
 
-   Copyright (C) 2012 Free Software Foundation, Inc.
+   Copyright 2012-2014 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 #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.025534 seconds and 4 git commands to generate.