void-packages/srcpkgs/python-llfuse/patches/xattr.patch

22 lines
632 B
Diff

See https://bitbucket.org/nikratio/python-llfuse/commits/cec107981b03c6c3e263f21009757dec76d129e2
--- src/xattr.h 2016-05-24 02:53:33.000000000 +0200
+++ src/xattr.h 2018-08-22 17:12:52.990555934 +0200
@@ -25,7 +25,15 @@
* Linux
*/
#if PLATFORM == PLATFORM_LINUX
-#include <attr/xattr.h>
+#include <sys/xattr.h>
+/*
+ * Newer versions of attr deprecate attr/xattr.h which defines ENOATTR as a
+ * synonym for ENODATA. To keep compatibility with the old style and the new,
+ * define this ourselves.
+ */
+#ifndef ENOATTR
+#define ENOATTR ENODATA
+#endif
#define EXTATTR_NAMESPACE_USER 0
#define EXTATTR_NAMESPACE_SYSTEM 0