ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.c
(Generate patch)

Comparing libev/ev.c (file contents):
Revision 1.323 by root, Wed Jan 13 12:44:33 2010 UTC vs.
Revision 1.325 by root, Sun Jan 24 12:31:55 2010 UTC

344# endif 344# endif
345#endif 345#endif
346 346
347/* this block fixes any misconfiguration where we know we run into trouble otherwise */ 347/* this block fixes any misconfiguration where we know we run into trouble otherwise */
348 348
349#ifdef _AIX
350/* AIX has a completely broken poll.h header */
351# undef EV_USE_POLL
352# define EV_USE_POLL 0
353#endif
354
349#ifndef CLOCK_MONOTONIC 355#ifndef CLOCK_MONOTONIC
350# undef EV_USE_MONOTONIC 356# undef EV_USE_MONOTONIC
351# define EV_USE_MONOTONIC 0 357# define EV_USE_MONOTONIC 0
352#endif 358#endif
353 359
2157 ANHE_at_cache (*he); 2163 ANHE_at_cache (*he);
2158 } 2164 }
2159} 2165}
2160 2166
2161/* fetch new monotonic and realtime times from the kernel */ 2167/* fetch new monotonic and realtime times from the kernel */
2162/* also detetc if there was a timejump, and act accordingly */ 2168/* also detect if there was a timejump, and act accordingly */
2163inline_speed void 2169inline_speed void
2164time_update (EV_P_ ev_tstamp max_block) 2170time_update (EV_P_ ev_tstamp max_block)
2165{ 2171{
2166#if EV_USE_MONOTONIC 2172#if EV_USE_MONOTONIC
2167 if (expect_true (have_monotonic)) 2173 if (expect_true (have_monotonic))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines