From: Nick Mathewson Date: Wed, 2 May 2012 20:52:27 +0000 (-0400) Subject: Fix evdns build with threads disabled X-Git-Tag: release-2.0.19-stable~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=265e6779dd1b936298f50a8036e2fb565a785c83;p=libevent Fix evdns build with threads disabled The last evdns change apparently broke it, by using a "base" variable that we were only declaring with threads turned on. --- diff --git a/evdns.c b/evdns.c index ed2dbdc5..416137ba 100644 --- 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;