Comparison

util-src/net.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
parent 6411:6c8f6364bc48
child 6615:8e4572a642cb
comparison
equal deleted inserted replaced
6412:0e94f89d0e62 6413:a552f4170aed
23 #include <netinet/in.h> 23 #include <netinet/in.h>
24 #endif 24 #endif
25 25
26 #include <lua.h> 26 #include <lua.h>
27 #include <lauxlib.h> 27 #include <lauxlib.h>
28
29 #if (LUA_VERSION_NUM == 502)
30 #define luaL_register(L, N, R) luaL_setfuncs(L, R, 0)
31 #endif
28 32
29 /* Enumerate all locally configured IP addresses */ 33 /* Enumerate all locally configured IP addresses */
30 34
31 const char * const type_strings[] = { 35 const char * const type_strings[] = {
32 "both", 36 "both",