summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2013-01-14 14:14:12 +0100
committerMike Pall <mike>2013-01-14 14:14:12 +0100
commitfec750c892d9de9d910996d841233aa66eebc62d (patch)
treec8f3b4f68c341468f7513cadfa0f5a362fd3cecb
parentad36fdac50307891ad926fcab40284c11e1d49bc (diff)
downloadluajit2-fec750c892d9de9d910996d841233aa66eebc62d.tar.gz
Another fix for PS3 build.
-rw-r--r--src/luaconf.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/luaconf.h b/src/luaconf.h
index de519186..acfd81ac 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -90,7 +90,12 @@
/* Note: changing the following defines breaks the Lua 5.1 ABI. */
#define LUA_INTEGER ptrdiff_t
#define LUA_IDSIZE 60 /* Size of lua_Debug.short_src. */
-#define LUAL_BUFFERSIZE BUFSIZ /* Size of lauxlib and io.* buffers. */
+/*
+** Size of lauxlib and io.* on-stack buffers. Weird workaround to avoid using
+** unreasonable amounts of stack space, but still retain ABI compatibility.
+** Blame Lua for depending on BUFSIZ in the ABI, blame **** for wrecking it.
+*/
+#define LUAL_BUFFERSIZE (BUFSIZ > 16384 ? 8192 : BUFSIZ)
/* The following defines are here only for compatibility with luaconf.h
** from the standard Lua distribution. They must not be changed for LuaJIT.