[tor-dev] [Patch] or/eventdns.c
Gisle Vanem
gvanem at broadpark.no
Wed Oct 19 19:24:02 UTC 2011
I've made eventdns.c + '-DEVDNS_MAIN' compile and work
under Windows / MSVC. Some simple patches:
* Use set_socket_nonblocking() instead of the F_SETFL hacks.
* Preserve the ret-val from evdns_config_windows_nameservers().
* In main(), call network_init() to call WSAStartup() etc.
* Removed 'evdns_resolv_conf_parse(DNS_OPTION_NAMESERVERS, ...'
and call evdns_init() instead. This uses 'DNS_OPTIONS_ALL'. Does that
really matter?
Attached diff-1.txt. (sorry, I'm a Git neophyte).
--gv
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff-1.txt
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20111019/8b3a8f36/attachment.txt>
More information about the tor-dev
mailing list