diff options
-rw-r--r-- | src/lfs.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -56,6 +56,7 @@ | |||
56 | #include <utime.h> | 56 | #include <utime.h> |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | #define LUA_COMPAT_ALL | ||
59 | #include "lua.h" | 60 | #include "lua.h" |
60 | #include "lauxlib.h" | 61 | #include "lauxlib.h" |
61 | #include "lualib.h" | 62 | #include "lualib.h" |
@@ -877,15 +878,6 @@ static const struct luaL_Reg fslib[] = { | |||
877 | {NULL, NULL}, | 878 | {NULL, NULL}, |
878 | }; | 879 | }; |
879 | 880 | ||
880 | #if LUA_VERSION_NUM > 501 | ||
881 | static void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l) | ||
882 | { | ||
883 | luaL_newlib (L, l); | ||
884 | lua_pushvalue (L, -1); | ||
885 | lua_setglobal (L, libname); | ||
886 | } | ||
887 | #endif | ||
888 | |||
889 | int luaopen_lfs (lua_State *L) { | 881 | int luaopen_lfs (lua_State *L) { |
890 | dir_create_meta (L); | 882 | dir_create_meta (L); |
891 | lock_create_meta (L); | 883 | lock_create_meta (L); |