summaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-06-04 03:24:53 -0400
committerNick Mathewson <nickm@torproject.org>2009-06-12 14:27:53 -0400
commit33b1d714e779a714c2d55e5da09d0e3c682f273a (patch)
tree181298ff8014f9463d17f14d52d30150336410a6 /src/common/compat_libevent.h
parentc0af3cdfb6816659031fed5a1b8feec5d457b608 (diff)
downloadtor-33b1d714e779a714c2d55e5da09d0e3c682f273a.tar.gz
tor-33b1d714e779a714c2d55e5da09d0e3c682f273a.zip
Make Tor compile with Libevent 1.0 again.
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r--src/common/compat_libevent.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h
index 5482c479fe..b70f8d3083 100644
--- a/src/common/compat_libevent.h
+++ b/src/common/compat_libevent.h
@@ -33,6 +33,15 @@ struct event *tor_evsignal_new(struct event_base * base, int sig,
void tor_event_free(struct event *ev);
#endif
+/* XXXX022 If we can drop support for Libevent before 1.1, we can
+ * do without this wrapper. */
+#ifdef HAVE_EVENT_BASE_LOOPEXIT
+#define tor_event_base_loopexit event_base_loopexit
+#else
+struct timeval;
+int tor_event_base_loopexit(struct event_base *base, struct timeval *tv);
+#endif
+
void tor_libevent_initialize(void);
struct event_base *tor_libevent_get_base(void);
const char *tor_libevent_get_method(void);