aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-30 17:57:59 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-30 17:57:59 +0400
commitdd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4 (patch)
treeab8bfcf6c21bd8a47f49b9f9331378e6454e90cf /src/main.c
parentc72912310c575a5ba7e7e50a5fdd425f3a4e4dbc (diff)
downloadrspamd-dd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4.tar.gz
rspamd-dd2fbb7a5b7e1c0d844900147486ad7ffd98c1e4.zip
* Add message handling functions to lua API
* Add ability to add lua code in config with .lua and .endlua * Add consolidation functions support that are written in perl or lua
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 7e78fce9a..348e7a1ea 100644
--- a/src/main.c
+++ b/src/main.c
@@ -29,7 +29,16 @@
#include "lmtp.h"
#ifndef WITHOUT_PERL
+
+#include <EXTERN.h> /* from the Perl distribution */
+#include <perl.h> /* from the Perl distribution */
+
+# ifndef PERL_IMPLICIT_CONTEXT
+# undef dTHXa
+# define dTHXa(a)
+# endif
#include "perl.h"
+
#elif defined(WITH_LUA)
#include "lua-rspamd.h"
#endif