1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/python3-tkinter/fix-xattrs-glibc.patch
Natanael Copa 6f4cca64ba main/python3: fix cyclic dependency for tkinter
Add a separate apkbuild for tkinter to avoid the cyclic buildtime
dependency:

  python3 -> tk -> libX11 -> libxcb -> xcb-proto -> python3
2017-10-27 16:49:59 +00:00

15 lines
562 B
Diff

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