[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Define a wrapper for evdns_base_resolve_ipv6 for systems w/o libevent 2
commit c4830bfbe2db333b6550d8b3e98868fa2c808b76
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Tue Nov 6 14:30:30 2012 -0500
Define a wrapper for evdns_base_resolve_ipv6 for systems w/o libevent 2
---
src/or/dns.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/or/dns.c b/src/or/dns.c
index 780cae0..2804a0f 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -61,6 +61,9 @@ struct evdns_request;
#define evdns_base_resolve_ipv4(base, addr, options, cb, ptr) \
((evdns_resolve_ipv4((addr), (options), (cb), (ptr))!=0) \
? NULL : ((void*)1))
+#define evdns_base_resolve_ipv6(base, addr, options, cb, ptr) \
+ ((evdns_resolve_ipv6((addr), (options), (cb), (ptr))!=0) \
+ ? NULL : ((void*)1))
#define evdns_base_resolve_reverse(base, addr, options, cb, ptr) \
((evdns_resolve_reverse((addr), (options), (cb), (ptr))!=0) \
? NULL : ((void*)1))
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits