]> granicus.if.org Git - libevent/commitdiff
Fix evdns build with threads disabled
authorNick Mathewson <nickm@torproject.org>
Wed, 2 May 2012 20:52:27 +0000 (16:52 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 2 May 2012 20:52:27 +0000 (16:52 -0400)
The last evdns change apparently broke it, by using a "base"
variable that we were only declaring with threads turned on.

evdns.c

diff --git a/evdns.c b/evdns.c
index ed2dbdc55c664d1f528d5ce72af5d314f326e26b..416137ba25b987167a285a625bea1f117debefd7 100644 (file)
--- a/evdns.c
+++ b/evdns.c
@@ -2138,9 +2138,8 @@ evdns_server_request_get_requesting_addr(struct evdns_server_request *_req, stru
 static void
 evdns_request_timeout_callback(evutil_socket_t fd, short events, void *arg) {
        struct request *const req = (struct request *) arg;
-#ifndef _EVENT_DISABLE_THREAD_SUPPORT
        struct evdns_base *base = req->base;
-#endif
+
        (void) fd;
        (void) events;