Files
termux-packages/packages/python/0012-do-not-include-langinfo.patch
2024-05-30 00:25:32 +00:00

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