… | |
… | |
7 | |
7 | |
8 | #include <sys/time.h> |
8 | #include <sys/time.h> |
9 | #include <time.h> |
9 | #include <time.h> |
10 | #include <event.h> |
10 | #include <event.h> |
11 | #include <evdns.h> |
11 | #include <evdns.h> |
12 | /*include <evhttp.h>*/ /* does not compile */ |
12 | |
|
|
13 | /* workaround for evhttp.h requiring obscure bsd headers */ |
|
|
14 | #ifndef TAILQ_ENTRY |
|
|
15 | #define TAILQ_ENTRY(type) \ |
|
|
16 | struct { \ |
|
|
17 | struct type *tqe_next; /* next element */ \ |
|
|
18 | struct type **tqe_prev; /* address of previous next element */ \ |
|
|
19 | } |
|
|
20 | #endif /* !TAILQ_ENTRY */ |
|
|
21 | #include <evhttp.h> |
13 | |
22 | |
14 | #define EV_NONE 0 |
23 | #define EV_NONE 0 |
15 | #define EV_UNDEF -1 |
24 | #define EV_UNDEF -1 |
16 | |
25 | |
17 | #define TIMEOUT_NONE HUGE_VAL |
26 | #define TIMEOUT_NONE HUGE_VAL |