mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 20:41:27 -04:00
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.
This commit is contained in:
parent
3d9e52ac56
commit
265e6779dd
3
evdns.c
3
evdns.c
@ -2138,9 +2138,8 @@ evdns_server_request_get_requesting_addr(struct evdns_server_request *_req, stru
|
|||||||
static void
|
static void
|
||||||
evdns_request_timeout_callback(evutil_socket_t fd, short events, void *arg) {
|
evdns_request_timeout_callback(evutil_socket_t fd, short events, void *arg) {
|
||||||
struct request *const req = (struct request *) arg;
|
struct request *const req = (struct request *) arg;
|
||||||
#ifndef _EVENT_DISABLE_THREAD_SUPPORT
|
|
||||||
struct evdns_base *base = req->base;
|
struct evdns_base *base = req->base;
|
||||||
#endif
|
|
||||||
(void) fd;
|
(void) fd;
|
||||||
(void) events;
|
(void) events;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user