python-llfuse: fix build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-08-22 17:16:57 +02:00
parent 1ad1f438b2
commit b0e5abb4e7
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,21 @@
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

View File

@ -1,7 +1,7 @@
# Template file for 'python-llfuse'
pkgname=python-llfuse
version=1.3
revision=1
revision=2
wrksrc="llfuse-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools pkg-config"