aboutsummaryrefslogtreecommitdiffstats
path: root/package/lua/patches-host/200-lua-path.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-02-22 23:54:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-02-22 23:54:26 +0000
commit0d56c7c638678d6369e6d64d1a7a5bd0c626fc76 (patch)
tree52c150e57997018607370f74f7e8a80406e48fb6 /package/lua/patches-host/200-lua-path.patch
parentf684d0a47b5fefa1ffc59c51e17482dc13d3a272 (diff)
downloadupstream-0d56c7c638678d6369e6d64d1a7a5bd0c626fc76.tar.gz
upstream-0d56c7c638678d6369e6d64d1a7a5bd0c626fc76.tar.bz2
upstream-0d56c7c638678d6369e6d64d1a7a5bd0c626fc76.zip
add back the old host patches for lua to improve portability
SVN-Revision: 14631
Diffstat (limited to 'package/lua/patches-host/200-lua-path.patch')
-rw-r--r--package/lua/patches-host/200-lua-path.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/lua/patches-host/200-lua-path.patch b/package/lua/patches-host/200-lua-path.patch
new file mode 100644
index 0000000000..62dd00e399
--- /dev/null
+++ b/package/lua/patches-host/200-lua-path.patch
@@ -0,0 +1,15 @@
+--- b/src/luaconf.h 2008-05-06 20:10:46.000000000 +0200
++++ a/src/luaconf.h 2008-05-06 20:10:27.000000000 +0200
+@@ -95,9 +95,9 @@
+ ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
+
+ #else
+-#define LUA_ROOT "/usr/local/"
+-#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
+-#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
++#define LUA_ROOT "/usr/"
++#define LUA_LDIR LUA_ROOT "share/lua/"
++#define LUA_CDIR LUA_ROOT "lib/lua/"
+ #define LUA_PATH_DEFAULT \
+ "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
+ LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"