diff --git a/src/third_party/lfs.c b/src/third_party/lfs.c index 020267de..4ffbbd79 100644 --- a/src/third_party/lfs.c +++ b/src/third_party/lfs.c @@ -20,6 +20,10 @@ ** $Id: lfs.c,v 1.61 2009/07/04 02:10:16 mascarenhas Exp $ */ +#if LUA_VERSION_NUM == 501 +#define lua_pushinteger lua_pushnumber +#endif + #ifndef LFS_DO_NOT_USE_LARGE_FILE #ifndef _WIN32 #ifndef _AIX diff --git a/src/third_party/lsqlite3.c b/src/third_party/lsqlite3.c index c959cccd..0bfc54ae 100644 --- a/src/third_party/lsqlite3.c +++ b/src/third_party/lsqlite3.c @@ -34,6 +34,10 @@ #include "lua.h" #include "lauxlib.h" +#if LUA_VERSION_NUM == 501 +#define lua_pushinteger lua_pushnumber +#endif + #if LUA_VERSION_NUM > 501 /* ** Lua 5.2