From 2ea71f33574a0235d9cdb31ccc17fc76493bdd47 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 18 Apr 2015 10:45:40 -0400 Subject: Fixed 'require' bug with lfs and utf8 in LuaJIT version. --- src/lfs.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/lfs.patch (limited to 'src/lfs.patch') diff --git a/src/lfs.patch b/src/lfs.patch new file mode 100644 index 00000000..85391e65 --- /dev/null +++ b/src/lfs.patch @@ -0,0 +1,11 @@ +--- lfs.c 2015-04-18 10:36:56.458722799 -0400 ++++ lib/lfs.c 2015-04-18 10:37:06.806736918 -0400 +@@ -78,7 +78,7 @@ + #endif + + #if LUA_VERSION_NUM < 502 +-# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l)) ++# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,LFS_LIBNAME,l)) + #endif + + /* Define 'strerror' for systems that do not implement it */ -- cgit v1.2.3