diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 13:15:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 13:15:15 +0100 |
commit | eb737947eb2afe98f9dac1121fa37d1b746c5657 (patch) | |
tree | 02aa7752555cc4a47b1a9b423066bbdc52a7e8c5 /src/lua | |
parent | e0bfa35ee937940f20a5675bc7582cfc83c2866b (diff) | |
download | rspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.tar.gz rspamd-eb737947eb2afe98f9dac1121fa37d1b746c5657.zip |
Reorganize includes to reduce namespace pollution.
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_buffer.c | 2 | ||||
-rw-r--r-- | src/lua/lua_cfg_file.c | 3 | ||||
-rw-r--r-- | src/lua/lua_http.c | 1 | ||||
-rw-r--r-- | src/lua/lua_rsa.c | 1 | ||||
-rw-r--r-- | src/lua/lua_tcp.c | 1 | ||||
-rw-r--r-- | src/lua/lua_util.c | 1 |
6 files changed, 7 insertions, 2 deletions
diff --git a/src/lua/lua_buffer.c b/src/lua/lua_buffer.c index 021b13a0d..d5f4c7848 100644 --- a/src/lua/lua_buffer.c +++ b/src/lua/lua_buffer.c @@ -23,6 +23,8 @@ #include "lua_common.h" #include "buffer.h" +#include "unix-std.h" +#include <math.h> /* Public prototypes */ struct rspamd_io_dispatcher_s * lua_check_io_dispatcher (lua_State * L); diff --git a/src/lua/lua_cfg_file.c b/src/lua/lua_cfg_file.c index bc9bdb3ac..0a63164f5 100644 --- a/src/lua/lua_cfg_file.c +++ b/src/lua/lua_cfg_file.c @@ -23,10 +23,9 @@ */ #include "lua_common.h" -#include "symbols_cache.h" #include "expression.h" -#include "filter.h" #include "composites.h" +#include "unix-std.h" #ifdef HAVE_SYS_UTSNAME_H #include <sys/utsname.h> #endif diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index bbea1ebce..6e0417a82 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -26,6 +26,7 @@ #include "dns.h" #include "http.h" #include "utlist.h" +#include "unix-std.h" /*** * @module rspamd_http diff --git a/src/lua/lua_rsa.c b/src/lua/lua_rsa.c index a85d0db71..b4b84d896 100644 --- a/src/lua/lua_rsa.c +++ b/src/lua/lua_rsa.c @@ -29,6 +29,7 @@ */ #include "lua_common.h" +#include "unix-std.h" #ifdef HAVE_OPENSSL #include <openssl/err.h> diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c index 030f3109b..afc1fd5d9 100644 --- a/src/lua/lua_tcp.c +++ b/src/lua/lua_tcp.c @@ -26,6 +26,7 @@ #include "buffer.h" #include "dns.h" #include "utlist.h" +#include "unix-std.h" static void lua_tcp_handler (int fd, short what, gpointer ud); /*** diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index 3a7d00211..73099621f 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -27,6 +27,7 @@ #include "html.h" #include "cfg_rcl.h" #include "tokenizers/tokenizers.h" +#include <math.h> /*** * @module rspamd_util |