X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/2dff0867c6069c41ede598cd78bb2d5223fde025..41c50e780cb06f9be42a2942bb3292cfbb6fa5e6:/ev.c diff --git a/ev.c b/ev.c index 89c0929..0ae34e8 100644 --- a/ev.c +++ b/ev.c @@ -49,7 +49,7 @@ extern "C" { # define EV_USE_SELECT 1 # endif -# if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL) +# if HAVE_POLL && HAVE_POLL_H && !defined (EV_USE_POLL) && !defined (__APPLE__) # define EV_USE_POLL 1 # endif @@ -57,7 +57,7 @@ extern "C" { # define EV_USE_EPOLL 1 # endif -# if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) +# if HAVE_KQUEUE && HAVE_SYS_EVENT_H && HAVE_SYS_QUEUE_H && !defined (EV_USE_KQUEUE) && !defined (__APPLE__) # define EV_USE_KQUEUE 1 # endif @@ -97,10 +97,15 @@ extern "C" { #ifndef EV_USE_SELECT # define EV_USE_SELECT 1 +# define EV_SELECT_USE_FD_SET 1 #endif #ifndef EV_USE_POLL -# define EV_USE_POLL 0 /* poll is usually slower than select, and not as well tested */ +# ifdef _WIN32 +# define EV_USE_POLL 0 +# else +# define EV_USE_POLL 1 +# endif #endif #ifndef EV_USE_EPOLL