From: root Date: Thu, 1 Nov 2007 13:33:12 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: rel-0_5~62 X-Git-Url: https://git.llucax.com/software/libev.git/commitdiff_plain/63cc9a6e0c86c72cc437237441d9122a880fb1d7?ds=sidebyside *** empty log message *** --- diff --git a/ev.c b/ev.c index 7995b34..b962b74 100644 --- a/ev.c +++ b/ev.c @@ -49,9 +49,12 @@ #include #ifndef EV_USE_MONOTONIC -# ifdef CLOCK_MONOTONIC -# define EV_USE_MONOTONIC 1 -# endif +# define EV_USE_MONOTONIC 1 +#endif + +#ifndef CLOCK_MONOTONIC +# undef EV_USE_MONOTONIC +# define EV_USE_MONOTONIC 0 #endif #ifndef EV_USE_SELECT @@ -765,11 +768,11 @@ ev_stop (W w) void ev_io_start (struct ev_io *w) { + int fd = w->fd; + if (ev_is_active (w)) return; - int fd = w->fd; - assert (("ev_io_start called with negative fd", fd >= 0)); ev_start ((W)w, 1);