Commit 2f589e10 authored by Nick Mathewson's avatar Nick Mathewson 🎨
Browse files

Use event_base_new(), not event_init(), to detect libevent 2.

(event_init() is obsoleted in libevent 2.)

Fixes bug 21051; bugfix on when we dropped libevent 1
parent aaeb50b2
o Minor bugfixes (compilation):
- Fix Libevent detection on platforms without Libevent 1 headers
installed. Fixes bug 21051; bugfix on
......@@ -508,12 +508,13 @@ TOR_SEARCH_LIBRARY(libevent, $trylibeventdir, [-levent $STATIC_LIBEVENT_FLAGS $T
#ifdef _WIN32
#include <winsock2.h>
void *event_init(void);],
struct event_base;
struct event_base *event_base_new(void);],
#ifdef _WIN32
{WSADATA d; WSAStartup(0x101,&d); }
], [--with-libevent-dir], [/opt/libevent])
dnl Determine the incantation needed to link libevent.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment