termux-packages/packages/json-c/CMakeLists.txt.patch

22 lines
889 B
Diff

Disable locale. See https://github.com/termux/termux-packages/discussions/11209.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -143,7 +143,7 @@
check_include_file("dlfcn.h" HAVE_DLFCN_H)
check_include_file("endian.h" HAVE_ENDIAN_H)
check_include_file("limits.h" HAVE_LIMITS_H)
-check_include_file("locale.h" HAVE_LOCALE_H)
+# check_include_file("locale.h" HAVE_LOCALE_H)
check_include_file("memory.h" HAVE_MEMORY_H)
check_include_file(stdint.h HAVE_STDINT_H)
@@ -152,7 +152,7 @@
check_include_file(sys/param.h HAVE_SYS_PARAM_H)
check_include_file(sys/random.h HAVE_SYS_RANDOM_H)
check_include_file(sys/stat.h HAVE_SYS_STAT_H)
-check_include_file(xlocale.h HAVE_XLOCALE_H)
+# check_include_file(xlocale.h HAVE_XLOCALE_H)
if (HAVE_INTTYPES_H)
# Set a json-c specific var to stamp into json_config.h