Merge 0.9->0.10
[prosody.git] / util-src / encodings.c
index 91826ca42f3b682fbd196b5d0ca1e7ad2d256ec0..0841e29f1ddf32ef50532066100932954f54d28f 100644 (file)
 #include "lua.h"
 #include "lauxlib.h"
 
+#if (LUA_VERSION_NUM == 502)
+#define luaL_register(L, N, R) luaL_setfuncs(L, R, 0)
+#endif
+
 /***************** BASE64 *****************/
 
 static const char code[]=