From 5b28b96425b1733068f6ae021eae2d9918a85c6c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 15 Oct 2015 14:03:31 +0100 Subject: [PATCH] Add workaround for old libevent. Issue: #400 Reported by: @Nikolay --- src/libutil/util.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libutil/util.h b/src/libutil/util.h index f39730b0f..68ee6babc 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -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 -- 2.39.5