diff options
-rw-r--r-- | ev.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -567,6 +567,9 @@ ev_sleep (ev_tstamp delay) tv.tv_sec = (time_t)delay; tv.tv_usec = (long)((delay - (ev_tstamp)(tv.tv_sec)) * 1e6); + /* here we rely on sys/time.h + sys/types.h + unistd.h providing select */ + /* somehting nto guaranteed by newer posix versions, but guaranteed */ + /* by older ones */ select (0, 0, 0, 0, &tv); #endif } |