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 */