From c4f5e3dda46b8a3f9ec24aad5d59c3b0f718cea9 Mon Sep 17 00:00:00 2001 From: lneto Date: Wed, 4 Feb 2015 04:47:57 +0000 Subject: [PATCH] lua: fixed LUA_ROOT, LUA_PATH_DEFAULT and LUA_CPATH_DEFAULT * reverted from r1.8 (mbalmer) --- external/mit/lua/dist/src/luaconf.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/external/mit/lua/dist/src/luaconf.h b/external/mit/lua/dist/src/luaconf.h index db86c71331cc..c30540b3a8e5 100644 --- a/external/mit/lua/dist/src/luaconf.h +++ b/external/mit/lua/dist/src/luaconf.h @@ -1,4 +1,4 @@ -/* $NetBSD: luaconf.h,v 1.11 2015/02/02 14:03:05 lneto Exp $ */ +/* $NetBSD: luaconf.h,v 1.12 2015/02/04 04:47:57 lneto Exp $ */ /* ** Id: luaconf.h,v 1.238 2014/12/29 13:27:55 roberto Exp @@ -753,6 +753,18 @@ #define LUA_MAXINTEGER INTMAX_MAX #define LUA_MININTEGER INTMAX_MIN +/* Path */ +#undef LUA_ROOT +#undef LUA_PATH_DEFAULT +#undef LUA_CPATH_DEFAULT + +#define LUA_ROOT "/usr/" +#define LUA_PATH_DEFAULT \ + LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \ + LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua" +#define LUA_CPATH_DEFAULT \ + LUA_CDIR"?.so;" LUA_CDIR"loadall.so" + #ifndef _KERNEL #include