Mercurial > prosody-hg
diff util-src/windows.c @ 6413:a552f4170aed
util-src/*.c: Add macro for compiling with Lua 5.2
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 17 Sep 2014 14:30:29 +0200 |
| parents | 0e94f89d0e62 |
| children | 8e4572a642cb |
line wrap: on
line diff
--- a/util-src/windows.c Wed Sep 17 02:23:17 2014 +0200 +++ b/util-src/windows.c Wed Sep 17 14:30:29 2014 +0200 @@ -19,6 +19,10 @@ #include "lua.h" #include "lauxlib.h" +#if (LUA_VERSION_NUM == 502) +#define luaL_register(L, N, R) luaL_setfuncs(L, R, 0) +#endif + static int Lget_nameservers(lua_State *L) { char stack_buffer[1024]; // stack allocated buffer IP4_ARRAY* ips = (IP4_ARRAY*) stack_buffer;
