summaryrefslogtreecommitdiff
path: root/rspamd/rspamd-fedora.patch
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-16 23:29:24 +0200
committerDeposite Pirate2018-09-16 23:29:24 +0200
commit569e598d38adb1918d127ee31af1cd332b072dcf (patch)
tree23a7204866591100db57f3acac53cd410ea8d3e4 /rspamd/rspamd-fedora.patch
Initial commit.HEADmaster
Diffstat (limited to 'rspamd/rspamd-fedora.patch')
-rw-r--r--rspamd/rspamd-fedora.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/rspamd/rspamd-fedora.patch b/rspamd/rspamd-fedora.patch
new file mode 100644
index 0000000..1e7d023
--- /dev/null
+++ b/rspamd/rspamd-fedora.patch
@@ -0,0 +1,26 @@
+diff -ru ./src/lua/lua_common.h ../rspamd-0.8.0.p/src/lua/lua_common.h
+--- ./src/lua/lua_common.h 2014-12-17 16:51:42.000000000 +0200
++++ ../rspamd-0.8.0.p/src/lua/lua_common.h 2015-01-09 14:25:09.696650229 +0200
+@@ -25,21 +25,6 @@
+ lua_pushnumber (L, val); \
+ lua_settable (L, -3);
+
+-#if LUA_VERSION_NUM > 501
+-static inline void
+-luaL_register (lua_State *L, const gchar *name, const struct luaL_reg *methods)
+-{
+- if (name != NULL) {
+- lua_newtable (L);
+- }
+- luaL_setfuncs (L, methods, 0);
+- if (name != NULL) {
+- lua_pushvalue (L, -1);
+- lua_setglobal (L, name);
+- }
+-}
+-#endif
+-
+ /* Interface definitions */
+ #define LUA_FUNCTION_DEF(class, name) static gint lua_ ## class ## _ ## name ( \
+ lua_State * L)
+