diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-06-04 14:49:16 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-06-12 14:27:53 -0400 |
commit | 1e709c79d12b2366d4e1c1ea517e313cc29ee3cd (patch) | |
tree | bc87d6e2a8da346a061f387174487bdead78b6b0 /src/or/dns.c | |
parent | 33b1d714e779a714c2d55e5da09d0e3c682f273a (diff) | |
download | tor-1e709c79d12b2366d4e1c1ea517e313cc29ee3cd.tar.gz tor-1e709c79d12b2366d4e1c1ea517e313cc29ee3cd.zip |
Isolate Libevent API dependency to just main.c and dns.c in src/or.
The rest of the code was only including event.h so that it could see
EV_READ and EV_WRITE, which we were using as part of the
connection_watch_events interface for no very good reason.
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index ba34b406b9..8d00d23eee 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -14,9 +14,11 @@ #include "or.h" #include "ht.h" #ifdef HAVE_EVENT2_DNS_H +#include <event2/event.h> #include <event2/dns.h> #include <event2/dns_compat.h> #else +#include <event.h> #include "eventdns.h" #ifndef HAVE_EVDNS_SET_DEFAULT_OUTGOING_BIND_ADDRESS #define HAVE_EVDNS_SET_DEFAULT_OUTGOING_BIND_ADDRESS |