diff --git a/llarp/ev/ev_win32.hpp b/llarp/ev/ev_win32.hpp index bf61ce97c..a99dd7bfe 100644 --- a/llarp/ev/ev_win32.hpp +++ b/llarp/ev/ev_win32.hpp @@ -25,15 +25,15 @@ struct asio_evt_pkt }; struct win32_tun_io; + extern "C" DWORD FAR PASCAL tun_ev_loop(void* unused); + // list of TUN listeners (useful for exits or other nodes with multiple TUNs) std::list< win32_tun_io* > tun_listeners; // a single event queue for the TUN interface -HANDLE tun_event_queue = - INVALID_HANDLE_VALUE; // we pass this to the event loop thread procedure - // upon setup +HANDLE tun_event_queue = INVALID_HANDLE_VALUE; // we hand the kernel our thread handles to process completion events HANDLE* kThreadPool;