aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/util.h')
-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 0903c23e5..536caed2c 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -396,4 +396,9 @@ guint64 rspamd_hash_seed (void);
*/
gdouble rspamd_time_jitter (gdouble in, gdouble jitter);
+/* Special case for ancient libevent */
+#if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000000UL
+struct event_base * event_get_base (struct event *ev);
+#endif
+
#endif