diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-11 15:14:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-11 15:14:39 +0100 |
commit | c7a2f455751a4bac7c5d2f3afd6979de9b1b6ea8 (patch) | |
tree | d8dbe0ecc93745d07eccc2d078843cc178e8c79a /src/libutil/util.c | |
parent | cf0d8df0ed226879c14cede1f5e732e3b7dfec4c (diff) | |
download | rspamd-c7a2f455751a4bac7c5d2f3afd6979de9b1b6ea8.tar.gz rspamd-c7a2f455751a4bac7c5d2f3afd6979de9b1b6ea8.zip |
Add workaround for libevent 1.4.
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r-- | src/libutil/util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 943c37b08..b537643ca 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1963,3 +1963,11 @@ rspamd_time_jitter (gdouble in, gdouble jitter) return in + jitter * res; } + +#if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000000UL +struct event_base * +event_get_base (struct event *ev) +{ + return ev->ev_base; +} +#endif |