summaryrefslogblamecommitdiff
path: root/system/python3/fix-xattrs-glibc.patch
blob: 57a8fb73ab78bfcc6c14df1b9596277b57c0f264 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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