]> source.dussan.org Git - rspamd.git/commitdiff
Add compatibility for old libevent.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 Oct 2014 00:10:30 +0000 (01:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 17 Oct 2014 00:10:30 +0000 (01:10 +0100)
Issue: #109
Suggested by: @yellowman

src/libutil/http.c

index db48bd6de5a90b2fffeb05c9e5fb9f230196ac02..70564668c89b037bc53cdc7670722d578783564f 100644 (file)
@@ -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,