aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-07-31 11:11:45 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-27 12:28:43 -0400
commit57e7b54b7b4102de0c5776a1268367c18090033b (patch)
treecde7c95a1cb1bd3acfe4ff5577cafeba59d7e412 /src/common/compat_libevent.h
parent94aac84a71bc695fe594e49a4fd0947fdbbd4895 (diff)
downloadtor-57e7b54b7b4102de0c5776a1268367c18090033b.tar
tor-57e7b54b7b4102de0c5776a1268367c18090033b.tar.gz
Teach read_event/write_event manipulators about bufferevents.
Add an --enable-bufferevents config switch.
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r--src/common/compat_libevent.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h
index fdf5e0a18..a4011e37a 100644
--- a/src/common/compat_libevent.h
+++ b/src/common/compat_libevent.h
@@ -8,6 +8,9 @@
struct event;
struct event_base;
+#ifdef USE_BUFFEREVENTS
+struct bufferevent;
+#endif
#ifdef HAVE_EVENT2_EVENT_H
#include <event2/util.h>