… | |
… | |
23 | # define HAVE_STRUCT_IN6_ADDR 1 |
23 | # define HAVE_STRUCT_IN6_ADDR 1 |
24 | #endif |
24 | #endif |
25 | #undef HAVE_STRTOK_R |
25 | #undef HAVE_STRTOK_R |
26 | #undef strtok_r |
26 | #undef strtok_r |
27 | #define strtok_r fake_strtok_r |
27 | #define strtok_r fake_strtok_r |
|
|
28 | #include "evdns.h" |
28 | #include "evdns.c" |
29 | #include "evdns.c" |
29 | #endif |
30 | #endif |
30 | |
31 | |
31 | #ifndef WIN32 |
32 | #ifndef WIN32 |
32 | # include <pthread.h> |
33 | # include <pthread.h> |
… | |
… | |
100 | SvPOK_only (self); |
101 | SvPOK_only (self); |
101 | SvCUR_set (self, size); |
102 | SvCUR_set (self, size); |
102 | |
103 | |
103 | w = (struct ev_watcher *)SvPVX (self); |
104 | w = (struct ev_watcher *)SvPVX (self); |
104 | |
105 | |
105 | ev_watcher_init (w, e_cb); |
106 | ev_init (w, e_cb); |
106 | |
107 | |
107 | w->data = 0; |
108 | w->data = 0; |
108 | w->fh = 0; |
109 | w->fh = 0; |
109 | w->cb_sv = newSVsv (cb_sv); |
110 | w->cb_sv = newSVsv (cb_sv); |
110 | w->self = self; |
111 | w->self = self; |