0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-24 14:16:15 +00:00
termux-packages/disabled-packages/python3.11/0012-do-not-include-langinfo.patch

15 lines
359 B
Diff

We use libandroid-support when building Python, but Python does not
use LDFLAGS when building modules (and not much point in this case).
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -121,7 +121,7 @@
#include <term.h>
#endif
-#ifdef HAVE_LANGINFO_H
+#if defined(HAVE_LANGINFO_H) && !defined(__ANDROID__)
#include <langinfo.h>
#endif