… | |
… | |
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> |
… | |
… | |
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_watcher_init (w, e_cb); |
106 | |
107 | |
|
|
108 | w->data = 0; |
107 | w->fh = 0; |
109 | w->fh = 0; |
108 | w->cb_sv = newSVsv (cb_sv); |
110 | w->cb_sv = newSVsv (cb_sv); |
109 | w->self = self; |
111 | w->self = self; |
110 | |
112 | |
111 | return (void *)w; |
113 | return (void *)w; |