From 11aaf3434dc33131acad4ab24bf9c1539fb9da4c Mon Sep 17 00:00:00 2001 From: Andrew Starks Date: Mon, 12 Jan 2015 15:58:39 -0600 Subject: [PATCH] Simple patch for Lua 5.3 --- src/luasocket.h | 4 +++- src/mime.h | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/luasocket.h b/src/luasocket.h index f75d21f..f5eef1f 100644 --- a/src/luasocket.h +++ b/src/luasocket.h @@ -7,7 +7,9 @@ * 9/11/1999 \*=========================================================================*/ #include "lua.h" - +#ifndef luaL_checkint +#define luaL_checkint (int)luaL_checkinteger +#endif /*-------------------------------------------------------------------------*\ * Current socket library version \*-------------------------------------------------------------------------*/ diff --git a/src/mime.h b/src/mime.h index 99968a5..98cbf16 100644 --- a/src/mime.h +++ b/src/mime.h @@ -24,6 +24,10 @@ #define MIME_API extern #endif +#ifndef luaL_checkint +#define luaL_checkint (int)luaL_checkinteger +#endif + MIME_API int luaopen_mime_core(lua_State *L); #endif /* MIME_H */