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

Comparing libev/ev.c (file contents):
Revision 1.492 by root, Sat Jun 22 16:25:53 2019 UTC vs.
Revision 1.493 by root, Sun Jun 23 02:02:24 2019 UTC

398/* AIX has a completely broken poll.h header */ 398/* AIX has a completely broken poll.h header */
399# undef EV_USE_POLL 399# undef EV_USE_POLL
400# define EV_USE_POLL 0 400# define EV_USE_POLL 0
401#endif 401#endif
402 402
403#if EV_USE_LINUXAIO
404# include <linux/aio_abi.h> /* probably only needed for aio_context_t */
405#endif
406
407/* on linux, we can use a (slow) syscall to avoid a dependency on pthread, */ 403/* on linux, we can use a (slow) syscall to avoid a dependency on pthread, */
408/* which makes programs even slower. might work on other unices, too. */ 404/* which makes programs even slower. might work on other unices, too. */
409#if EV_USE_CLOCK_SYSCALL 405#if EV_USE_CLOCK_SYSCALL
410# include <sys/syscall.h> 406# include <sys/syscall.h>
411# ifdef SYS_clock_gettime 407# ifdef SYS_clock_gettime
442# endif 438# endif
443#endif 439#endif
444 440
445#if EV_USE_LINUXAIO 441#if EV_USE_LINUXAIO
446# include <sys/syscall.h> 442# include <sys/syscall.h>
447# if !SYS_io_getevents 443# if !SYS_io_getevents || !EV_USE_EPOLL
448# undef EV_USE_LINUXAIO 444# undef EV_USE_LINUXAIO
449# define EV_USE_LINUXAIO 0 445# define EV_USE_LINUXAIO 0
450# endif 446# endif
451#endif 447#endif
452 448
1607# include "ev_win32.c" 1603# include "ev_win32.c"
1608#endif 1604#endif
1609 1605
1610/*****************************************************************************/ 1606/*****************************************************************************/
1611 1607
1608#if EV_USE_LINUXAIO
1609# include <linux/aio_abi.h> /* probably only needed for aio_context_t */
1610#endif
1611
1612/* define a suitable floor function (only used by periodics atm) */ 1612/* define a suitable floor function (only used by periodics atm) */
1613 1613
1614#if EV_USE_FLOOR 1614#if EV_USE_FLOOR
1615# include <math.h> 1615# include <math.h>
1616# define ev_floor(v) floor (v) 1616# define ev_floor(v) floor (v)
2733# include "ev_port.c" 2733# include "ev_port.c"
2734#endif 2734#endif
2735#if EV_USE_KQUEUE 2735#if EV_USE_KQUEUE
2736# include "ev_kqueue.c" 2736# include "ev_kqueue.c"
2737#endif 2737#endif
2738#if EV_USE_EPOLL
2739# include "ev_epoll.c"
2740#endif
2738#if EV_USE_LINUXAIO 2741#if EV_USE_LINUXAIO
2739# include "ev_linuxaio.c" 2742# include "ev_linuxaio.c"
2740#endif
2741#if EV_USE_EPOLL
2742# include "ev_epoll.c"
2743#endif 2743#endif
2744#if EV_USE_POLL 2744#if EV_USE_POLL
2745# include "ev_poll.c" 2745# include "ev_poll.c"
2746#endif 2746#endif
2747#if EV_USE_SELECT 2747#if EV_USE_SELECT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines