ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.xs
(Generate patch)

Comparing EV/EV.xs (file contents):
Revision 1.52 by root, Mon Nov 5 18:03:52 2007 UTC vs.
Revision 1.55 by root, Tue Nov 6 12:36:25 2007 UTC

5/*#include <netinet/in.h>*/ 5/*#include <netinet/in.h>*/
6 6
7#define EV_PROTOTYPES 1 7#define EV_PROTOTYPES 1
8#include "EV/EVAPI.h" 8#include "EV/EVAPI.h"
9 9
10/* due to bugs in OS X we have to use libev/ explicitly here */
10#include "ev.c" 11#include "libev/ev.c"
11#include "event.c" 12#include "event.c"
12#define DNS_USE_GETTIMEOFDAY_FOR_ID 1 13#define DNS_USE_GETTIMEOFDAY_FOR_ID 1
14#if !defined (WIN32) && !defined(__CYGWIN__)
13#define HAVE_STRUCT_IN6_ADDR 1 15# define HAVE_STRUCT_IN6_ADDR 1
16#endif
14#undef HAVE_STRTOK_R 17#undef HAVE_STRTOK_R
15#undef strtok_r 18#undef strtok_r
16#define strtok_r fake_strtok_r 19#define strtok_r fake_strtok_r
17#include "evdns.c" 20#include "evdns.c"
21
22#ifndef WIN32
23# include <pthread.h>
24#endif
18 25
19typedef int Signal; 26typedef int Signal;
20 27
21static struct EVAPI evapi; 28static struct EVAPI evapi;
22 29
314 321
315 sv_setiv (sv, (IV)&evapi); 322 sv_setiv (sv, (IV)&evapi);
316 SvREADONLY_on (sv); 323 SvREADONLY_on (sv);
317 } 324 }
318 325
326 #ifndef WIN32
319 pthread_atfork (0, 0, ev_default_fork); 327 pthread_atfork (0, 0, ev_default_fork);
328 #endif
320} 329}
321 330
322NV ev_now () 331NV ev_now ()
323 332
324int ev_method () 333int ev_method ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines