mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 14:13:36 +00:00
2f4b0b9285
* Use LUA_PKGNAME to select lua version instead of patching makefile.
That option for make was added in the following upstream commit
5c2e0a19e2
* Update lua dependency to lua5.4.
* Fix the following compiler error with interp.c and modified langinfo.h.
langinfo.h:107:1: error: function definition is not allowed here
23 lines
528 B
Diff
23 lines
528 B
Diff
--- a/src/interp.c
|
|
+++ b/src/interp.c
|
|
@@ -1540,6 +1540,10 @@
|
|
return;
|
|
}
|
|
|
|
+#ifdef USELOCALE
|
|
+#include <locale.h>
|
|
+#include <langinfo.h>
|
|
+#endif
|
|
|
|
/**
|
|
* \brief slet()
|
|
@@ -1609,8 +1613,6 @@
|
|
// reconvert numeric value based on locale's D_FMT format instead of current format
|
|
char * f = &v->format[1];
|
|
#ifdef USELOCALE
|
|
- #include <locale.h>
|
|
- #include <langinfo.h>
|
|
char * loc = NULL;
|
|
f = NULL;
|
|
loc = setlocale(LC_TIME, "");
|