From 303873ebd255a8e2561183dea58158a55970c9db Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 17 Oct 2014 01:10:30 +0100 Subject: [PATCH] Add compatibility for old libevent. Issue: #109 Suggested by: @yellowman --- src/libutil/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/http.c b/src/libutil/http.c index db48bd6de..70564668c 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -568,7 +568,7 @@ rspamd_http_simple_client_helper (struct rspamd_http_connection *conn) { struct event_base *base; - base = event_get_base (&conn->priv->ev); + base = conn->priv->ev.ev_base; rspamd_http_connection_reset (conn); /* Plan read message */ rspamd_http_connection_read_message (conn, conn->ud, conn->fd, -- 2.39.5