aboutsummaryrefslogtreecommitdiffstats
path: root/main/python3/fix-xattrs-glibc.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-05-02 15:13:45 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-05-02 15:13:50 +0000
commit6e923534e20374eb812cabc9cdbcaae6c9f7d4f4 (patch)
tree5f4f16625aa4f8241e92e92a76c68733dc8efb2c /main/python3/fix-xattrs-glibc.patch
parentb0b02363a94bb0d9c05c2bba9580bdc176c2a3ce (diff)
downloadaports-6e923534e20374eb812cabc9cdbcaae6c9f7d4f4.tar.bz2
aports-6e923534e20374eb812cabc9cdbcaae6c9f7d4f4.tar.xz
main/python3: patch to not use sys/xattr.h which is from glibc
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