]> source.dussan.org Git - rspamd.git/commitdiff
Add workaround for old libevent.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Oct 2015 13:03:31 +0000 (14:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Oct 2015 13:03:31 +0000 (14:03 +0100)
Issue: #400
Reported by: @Nikolay

src/libutil/util.h

index f39730b0f137faef34ed775caf3a48d9c07df18a..68ee6babc6360df203893474e1315b1d488970f5 100644 (file)
@@ -407,5 +407,10 @@ gboolean rspamd_constant_memcmp (const guchar *a, const guchar *b, gsize len);
 #if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000000UL
 struct event_base * event_get_base (struct event *ev);
 #endif
+/* CentOS libevent */
+#ifndef evsignal_set
+#define evsignal_set(ev, x, cb, arg)    \
+    event_set((ev), (x), EV_SIGNAL|EV_PERSIST, (cb), (arg))
+#endif
 
 #endif