[tor-commits] [tor/maint-0.2.9] Use event_base_new(), not event_init(), to detect libevent 2.
nickm at torproject.org
nickm at torproject.org
Fri Dec 23 16:04:10 UTC 2016
commit 2f589e1057ce023cb9c561df48fd3d690153294f
Author: Nick Mathewson <nickm at torproject.org>
Date: Fri Dec 23 08:18:31 2016 -0500
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.
---
changes/bug21051 | 3 +++
configure.ac | 5 +++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/changes/bug21051 b/changes/bug21051
new file mode 100644
index 0000000..8bb4f80
--- /dev/null
+++ b/changes/bug21051
@@ -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.
diff --git a/configure.ac b/configure.ac
index 7ba4a41..ed01888 100644
--- a/configure.ac
+++ b/configure.ac
@@ -508,12 +508,13 @@ TOR_SEARCH_LIBRARY(libevent, $trylibeventdir, [-levent $STATIC_LIBEVENT_FLAGS $T
#ifdef _WIN32
#include <winsock2.h>
#endif
-void *event_init(void);],
+struct event_base;
+struct event_base *event_base_new(void);],
[
#ifdef _WIN32
{WSADATA d; WSAStartup(0x101,&d); }
#endif
-event_init();
+event_base_new();
], [--with-libevent-dir], [/opt/libevent])
dnl Determine the incantation needed to link libevent.
More information about the tor-commits
mailing list