summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libutil/util.h5
1 files changed, 5 insertions, 0 deletions
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