diff --git a/io/io_fd.c b/io/io_fd.c index dcbdab5..c234de4 100644 --- a/io/io_fd.c +++ b/io/io_fd.c @@ -24,6 +24,24 @@ #include #endif +#ifdef __MINGW32__ +extern HANDLE io_comport; +#endif +array io_fds; +uint64 io_wanted_fds; +array io_pollfds; +enum __io_waitmode io_waitmode; +#if defined(HAVE_KQUEUE) || defined(HAVE_EPOLL) || defined(HAVE_DEVPOLL) +int io_master; +#endif +#if defined(HAVE_SIGIO) +int io_signum; +sigset_t io_ss; + +long alt_firstread; +long alt_firstwrite; +#endif + /* put d on internal data structure, return 1 on success, 0 on error */ int io_fd(int64 d) { io_entry* e; diff --git a/io_internal.h b/io_internal.h index 57cb5c0..abf607f 100644 --- a/io_internal.h +++ b/io_internal.h @@ -41,7 +41,7 @@ extern array io_pollfds; extern long first_readable; extern long first_writeable; -extern enum { +extern enum __io_waitmode { UNDECIDED, POLL #ifdef HAVE_KQUEUE