Commit 3fc2fc6b authored by Denis Bilenko's avatar Denis Bilenko

include evdns.h through libevent.h so that libevent2 is supported too

parent 4cf92028
...@@ -18,7 +18,7 @@ cdef extern from "arpa/inet.h": ...@@ -18,7 +18,7 @@ cdef extern from "arpa/inet.h":
int inet_pton(int af, char *src, void *dst) int inet_pton(int af, char *src, void *dst)
char *inet_ntop(int af, void *src, char *dst, socklen_t size) char *inet_ntop(int af, void *src, char *dst, socklen_t size)
cdef extern from "evdns.h": cdef extern from "libevent.h":
ctypedef void (*evdns_handler)(int result, char t, int count, int ttl, ctypedef void (*evdns_handler)(int result, char t, int count, int ttl,
void *addrs, void *arg) void *addrs, void *arg)
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
#include "event2/http_struct.h" #include "event2/http_struct.h"
#include "event2/buffer.h" #include "event2/buffer.h"
#include "event2/buffer_compat.h" #include "event2/buffer_compat.h"
#include "event2/dns.h"
#include "event2/dns_compat.h"
#define EVBUFFER_DRAIN evbuffer_drain #define EVBUFFER_DRAIN evbuffer_drain
#define EVHTTP_SET_CB evhttp_set_cb #define EVHTTP_SET_CB evhttp_set_cb
...@@ -22,6 +24,7 @@ ...@@ -22,6 +24,7 @@
#include "event.h" #include "event.h"
#include "evhttp.h" #include "evhttp.h"
#include "evdns.h"
/* compatibility */ /* compatibility */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment