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

(event_init() is obsoleted in libevent 2.)

Fixes bug 21051; bugfix on 0.2.9.1-alpha when we dropped libevent 1
support.
This commit is contained in:
Nick Mathewson
2016-12-23 08:18:31 -05:00
parent aaeb50b2f3
commit 2f589e1057
2 changed files with 6 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
o Minor bugfixes (compilation):
- Fix Libevent detection on platforms without Libevent 1 headers
installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.