… | |
… | |
3 | #include "XSUB.h" |
3 | #include "XSUB.h" |
4 | |
4 | |
5 | /*#include <netinet/in.h>*/ |
5 | /*#include <netinet/in.h>*/ |
6 | |
6 | |
7 | #define EV_PROTOTYPES 1 |
7 | #define EV_PROTOTYPES 1 |
8 | #define EV_STANDALONE 1 |
|
|
9 | #include "EV/EVAPI.h" |
8 | #include "EV/EVAPI.h" |
10 | |
9 | |
11 | #include "libev/ev.c" |
10 | #include "libev/ev.c" |
12 | #include "libev/event.h" |
11 | #include "libev/event.h" |
13 | #include "libev/event.c" |
12 | #include "libev/event.c" |
… | |
… | |
316 | |
315 | |
317 | sv_setiv (sv, (IV)&evapi); |
316 | sv_setiv (sv, (IV)&evapi); |
318 | SvREADONLY_on (sv); |
317 | SvREADONLY_on (sv); |
319 | } |
318 | } |
320 | |
319 | |
321 | pthread_atfork (ev_fork_prepare, ev_fork_parent, ev_fork_child); |
320 | pthread_atfork (0, 0, ev_default_fork); |
322 | } |
321 | } |
323 | |
322 | |
324 | NV ev_now () |
323 | NV ev_now () |
325 | |
324 | |
326 | int ev_method () |
325 | int ev_method () |