From: Niels Provos Date: Fri, 4 Feb 2005 11:17:18 +0000 (+0000) Subject: make it compile again; from dug song X-Git-Tag: release-1.1b~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42b97958672d382435ed2db47468176e3518cb77;p=libevent make it compile again; from dug song svn:r130 --- diff --git a/WIN32-Code/win32.c b/WIN32-Code/win32.c index 6bcf4bc9..a278dea9 100644 --- a/WIN32-Code/win32.c +++ b/WIN32-Code/win32.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -45,10 +46,9 @@ #endif #include "event.h" +#include "event-internal.h" -extern struct event_list timequeue; -extern struct event_list eventqueue; -extern struct event_list addqueue; +extern struct event_base *current_base; extern struct event_list signalqueue; #define NEVENT 64 @@ -118,7 +118,7 @@ win32_dispatch(void *arg, struct timeval *tv) struct event *ev; int evres; - TAILQ_FOREACH(ev, &eventqueue, ev_next) { + TAILQ_FOREACH(ev, ¤t_base->eventqueue, ev_next) { res = WaitForSingleObject(ev->ev_fd, timeval_to_ms(tv)); if(res == WAIT_TIMEOUT || res == WAIT_FAILED) {