summaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.h
AgeCommit message (Collapse)Author
2010-02-19Make the DNSPort option work with libevent 2.xSebastian Hahn
We need to use evdns_add_server_port_with_base() when configuring our DNS listener, because libevent segfaults otherwise. Add a macro in compat_libevent.h to pick the correct implementation depending on the libevent version. Fixes bug 1143, found by SwissTorExit
2009-06-12Whitespace and osx fixes on libevent2 patch.Nick Mathewson
2009-06-12Make Tor compile with Libevent 1.0 again.Nick Mathewson
2009-06-12Move the Libvent setup logic into compat_libevent from config.Nick Mathewson
This has been some pretty ugly and voodoo-laden code. I've tried to clean it up a bit, but more work probably remains.
2009-06-12Update Tor to use Libevent 2.0 APIs when available.Nick Mathewson
This patch adds a new compat_libevent.[ch] set of files, and moves our Libevent compatibility and utilitity functions there. We build them into a separate .a so that nothing else in src/commmon depends on Libevent (partially fixing bug 507). Also, do not use our own built-in evdns copy when we have Libevent 2.0, whose evdns is finally good enough (thus fixing Bug 920).