summaryrefslogtreecommitdiff
path: root/repo/python/fix-xattrs-glibc.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-12-11 18:08:51 +0000
committerdavidovski <david@davidovski.xyz>2022-12-11 18:08:51 +0000
commit4c61af227b0fb3e028c877dc1c2e0b6513960762 (patch)
tree7c6bf0a36805ab40911d4af9f81d8a839fa4972b /repo/python/fix-xattrs-glibc.patch
parent63add57ef96f10f464fc1bf7c821d2281b39edeb (diff)
Updated linux
Diffstat (limited to 'repo/python/fix-xattrs-glibc.patch')
-rw-r--r--repo/python/fix-xattrs-glibc.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/repo/python/fix-xattrs-glibc.patch b/repo/python/fix-xattrs-glibc.patch
new file mode 100644
index 0000000..871236f
--- /dev/null
+++ b/repo/python/fix-xattrs-glibc.patch
@@ -0,0 +1,15 @@
+diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
+index 12f72f5..d54d085 100644
+--- a/Modules/posixmodule.c
++++ b/Modules/posixmodule.c
+@@ -234,8 +234,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