summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2008-06-29 22:32:51 +0000
committerroot <root>2008-06-29 22:32:51 +0000
commitbe8f9e9290ed05cbe31b799ab2a9d64c516e73bf (patch)
treefe548f379c71f913ed5a08e3c3ad3aceaa4d1649
parent9132285ac7dc920f58967ab756644f68650c8f76 (diff)
*** empty log message ***
-rw-r--r--ev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 545b88e..cd542ca 100644
--- a/ev.c
+++ b/ev.c
@@ -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
}