diff options
Diffstat (limited to 'mail/opendkim/files/patch-miltertest_miltertest.c')
-rw-r--r-- | mail/opendkim/files/patch-miltertest_miltertest.c | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/mail/opendkim/files/patch-miltertest_miltertest.c b/mail/opendkim/files/patch-miltertest_miltertest.c index 11c2ff7c7634..bd902a7d6886 100644 --- a/mail/opendkim/files/patch-miltertest_miltertest.c +++ b/mail/opendkim/files/patch-miltertest_miltertest.c @@ -1,20 +1,35 @@ --- miltertest/miltertest.c.orig 2014-03-20 04:36:13 UTC +++ miltertest/miltertest.c -@@ -4009,7 +4009,7 @@ main(int argc, char **argv) +@@ -4009,12 +4009,12 @@ main(int argc, char **argv) } /* register functions */ -#if LUA_VERSION_NUM == 502 -+#if (LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503) ++#if LUA_VERSION_NUM >= 502 luaL_newlib(l, mt_library); lua_setglobal(l, "mt"); - #else /* LUA_VERSION_NUM == 502 */ -@@ -4163,7 +4163,7 @@ main(int argc, char **argv) +-#else /* LUA_VERSION_NUM == 502 */ ++#else /* LUA_VERSION_NUM >= 502 */ + luaL_register(l, "mt", mt_library); +-#endif /* LUA_VERSION_NUM == 502 */ ++#endif /* LUA_VERSION_NUM >= 502 */ + lua_pop(l, 1); + + /* register constants */ +@@ -4163,13 +4163,13 @@ main(int argc, char **argv) lua_setglobal(l, "SMFIF_SETSYMLIST"); #endif /* SMFIF_SETSYMLIST */ -#if LUA_VERSION_NUM == 502 -+#if (LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503) ++#if LUA_VERSION_NUM >= 502 switch (lua_load(l, mt_lua_reader, (void *) &io, script == NULL ? "(stdin)" : script, NULL)) - #else /* LUA_VERSION_NUM == 502 */ +-#else /* LUA_VERSION_NUM == 502 */ ++#else /* LUA_VERSION_NUM >= 502 */ + switch (lua_load(l, mt_lua_reader, (void *) &io, + script == NULL ? "(stdin)" : script)) +-#endif /* LUA_VERSION_NUM == 502 */ ++#endif /* LUA_VERSION_NUM >= 502 */ + { + case 0: + break; |