aboutsummaryrefslogtreecommitdiff
path: root/src/lfs.patch
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-04-18 10:45:40 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-04-18 10:45:40 -0400
commit2ea71f33574a0235d9cdb31ccc17fc76493bdd47 (patch)
treef38cac680d906932a9247789cdacd6df6d438964 /src/lfs.patch
parenta65b51f92a80fcbc46f1f176ddcf6a37eefcca02 (diff)
downloadtextadept-2ea71f33574a0235d9cdb31ccc17fc76493bdd47.tar.gz
textadept-2ea71f33574a0235d9cdb31ccc17fc76493bdd47.zip
Fixed 'require' bug with lfs and utf8 in LuaJIT version.
Diffstat (limited to 'src/lfs.patch')
-rw-r--r--src/lfs.patch11
1 files changed, 11 insertions, 0 deletions
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 */