aboutsummaryrefslogtreecommitdiffstats
path: root/main/python3/fix-xattrs-glibc.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-10-16 14:10:04 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2018-10-16 14:11:13 -0500
commit4076ab5853ca7dca9a1f1ea70601f83c881a2a4a (patch)
tree7a3f8d9d11dea9574465dc4f40560a69f0f7069c /main/python3/fix-xattrs-glibc.patch
parenta4242e97d4a33e05b5678fc2fabc361310bc5184 (diff)
downloadaports-4076ab5853ca7dca9a1f1ea70601f83c881a2a4a.tar.gz
aports-4076ab5853ca7dca9a1f1ea70601f83c881a2a4a.tar.bz2
aports-4076ab5853ca7dca9a1f1ea70601f83c881a2a4a.tar.xz
main/python3: make xattr functions work (from adelie)
Diffstat (limited to 'main/python3/fix-xattrs-glibc.patch')
-rw-r--r--main/python3/fix-xattrs-glibc.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/python3/fix-xattrs-glibc.patch b/main/python3/fix-xattrs-glibc.patch
new file mode 100644
index 0000000000..57a8fb73ab
--- /dev/null
+++ b/main/python3/fix-xattrs-glibc.patch
@@ -0,0 +1,15 @@
+diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
+index 8f8ba25..72b92da 100644
+--- a/Modules/posixmodule.c
++++ b/Modules/posixmodule.c
+@@ -103,8 +103,9 @@ corresponding Unix manual entries for more information on calls.");
+ #undef HAVE_SCHED_SETAFFINITY
+ #endif
+
+-#if defined(HAVE_SYS_XATTR_H) && defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__GNU__)
++#if defined(HAVE_SYS_XATTR_H) && defined(__linux__) && !defined(__FreeBSD_kernel__) && !defined(__GNU__)
+ #define USE_XATTRS
++#include <linux/limits.h>
+ #endif
+
+ #ifdef USE_XATTRS