View | Details | Raw Unified | Return to bug 251688 | Differences between
and this patch

Collapse All | Expand All

(-)mail/opendkim/files/patch-miltertest_miltertest.c (-6 / +21 lines)
Lines 1-20 Link Here
1
--- miltertest/miltertest.c.orig	2014-03-20 04:36:13 UTC
1
--- miltertest/miltertest.c.orig	2014-03-20 04:36:13 UTC
2
+++ miltertest/miltertest.c
2
+++ miltertest/miltertest.c
3
@@ -4009,7 +4009,7 @@ main(int argc, char **argv)
3
@@ -4009,12 +4009,12 @@ main(int argc, char **argv)
4
 	}
4
 	}
5
 
5
 
6
 	/* register functions */
6
 	/* register functions */
7
-#if LUA_VERSION_NUM == 502
7
-#if LUA_VERSION_NUM == 502
8
+#if (LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503)
8
+#if LUA_VERSION_NUM >= 502
9
         luaL_newlib(l, mt_library);
9
         luaL_newlib(l, mt_library);
10
 	lua_setglobal(l, "mt");
10
 	lua_setglobal(l, "mt");
11
 #else /* LUA_VERSION_NUM == 502 */
11
-#else /* LUA_VERSION_NUM == 502 */
12
@@ -4163,7 +4163,7 @@ main(int argc, char **argv)
12
+#else /* LUA_VERSION_NUM >= 502 */
13
 	luaL_register(l, "mt", mt_library);
14
-#endif /* LUA_VERSION_NUM == 502 */
15
+#endif /* LUA_VERSION_NUM >= 502 */
16
 	lua_pop(l, 1);
17
 
18
 	/* register constants */
19
@@ -4163,13 +4163,13 @@ main(int argc, char **argv)
13
 	lua_setglobal(l, "SMFIF_SETSYMLIST");
20
 	lua_setglobal(l, "SMFIF_SETSYMLIST");
14
 #endif /* SMFIF_SETSYMLIST */
21
 #endif /* SMFIF_SETSYMLIST */
15
 
22
 
16
-#if LUA_VERSION_NUM == 502
23
-#if LUA_VERSION_NUM == 502
17
+#if (LUA_VERSION_NUM == 502 || LUA_VERSION_NUM == 503)
24
+#if LUA_VERSION_NUM >= 502
18
 	switch (lua_load(l, mt_lua_reader, (void *) &io,
25
 	switch (lua_load(l, mt_lua_reader, (void *) &io,
19
 	                 script == NULL ? "(stdin)" : script, NULL))
26
 	                 script == NULL ? "(stdin)" : script, NULL))
20
 #else /* LUA_VERSION_NUM == 502 */
27
-#else /* LUA_VERSION_NUM == 502 */
28
+#else /* LUA_VERSION_NUM >= 502 */
29
 	switch (lua_load(l, mt_lua_reader, (void *) &io,
30
 	                 script == NULL ? "(stdin)" : script))
31
-#endif /* LUA_VERSION_NUM == 502 */
32
+#endif /* LUA_VERSION_NUM >= 502 */
33
 	{
34
 	  case 0:
35
 		break;

Return to bug 251688