Software /
code /
prosody
Comparison
util-src/pposix.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 |
---|---|
32 #include <string.h> | 32 #include <string.h> |
33 #include <errno.h> | 33 #include <errno.h> |
34 #include "lua.h" | 34 #include "lua.h" |
35 #include "lualib.h" | 35 #include "lualib.h" |
36 #include "lauxlib.h" | 36 #include "lauxlib.h" |
37 | |
38 #if (LUA_VERSION_NUM == 502) | |
39 #define luaL_register(L, N, R) luaL_setfuncs(L, R, 0) | |
40 #endif | |
37 | 41 |
38 #include <fcntl.h> | 42 #include <fcntl.h> |
39 #if defined(__linux__) && defined(_GNU_SOURCE) | 43 #if defined(__linux__) && defined(_GNU_SOURCE) |
40 #include <linux/falloc.h> | 44 #include <linux/falloc.h> |
41 #endif | 45 #endif |