Skip to content
Snippets Groups Projects
fix-xattrs-glibc.patch 569 B
Newer Older
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
Leo's avatar
Leo committed
index 12f72f5..d54d085 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
Leo's avatar
Leo committed
@@ -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__)
Leo's avatar
Leo committed
 #  define USE_XATTRS
+#   include <linux/limits.h>