diff options
| author | root <root> | 2007-11-01 13:33:12 +0000 | 
|---|---|---|
| committer | root <root> | 2007-11-01 13:33:12 +0000 | 
| commit | 63cc9a6e0c86c72cc437237441d9122a880fb1d7 (patch) | |
| tree | ecbcdadec710e9a9a3f149b728802206c900c98e | |
| parent | 34ce8134fec96758f92d4b5a47d151081c6b74d6 (diff) | |
*** empty log message ***
| -rw-r--r-- | ev.c | 13 | 
1 files changed, 8 insertions, 5 deletions
| @@ -49,9 +49,12 @@  #include <time.h>  #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); | 
