24 lines
617 B
Diff
24 lines
617 B
Diff
--- a/src/luaconf.h
|
|
+++ b/src/luaconf.h
|
|
@@ -94,7 +94,7 @@
|
|
".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
|
|
|
|
#else
|
|
-#define LUA_ROOT "/usr/local/"
|
|
+#define LUA_ROOT "@TERMUX_PREFIX@/"
|
|
#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
|
|
#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
|
|
#define LUA_PATH_DEFAULT \
|
|
@@ -645,9 +645,9 @@
|
|
|
|
#if defined(LUA_USE_MKSTEMP)
|
|
#include <unistd.h>
|
|
-#define LUA_TMPNAMBUFSIZE 32
|
|
+#define LUA_TMPNAMBUFSIZE 256
|
|
#define lua_tmpnam(b,e) { \
|
|
- strcpy(b, "/tmp/lua_XXXXXX"); \
|
|
+ strcpy(b, "@TERMUX_PREFIX@/tmp/lua_XXXXXX"); \
|
|
e = mkstemp(b); \
|
|
if (e != -1) close(e); \
|
|
e = (e == -1); }
|