summaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.c
AgeCommit message (Collapse)Author
2010-07-27whitespace fixSebastian Hahn
2010-07-26Make sure we don't warn for libevent versions like 1.4.14b-stableSebastian Hahn
2010-07-09Rename log.h to torlog.hNick Mathewson
This should make us conflict less with system files named "log.h". Yes, we shouldn't have been conflicting with those anyway, but some people's compilers act very oddly. The actual change was done with one "git mv", by editing Makefile.am, and running find . -name '*.[ch]' | xargs perl -i -pe 'if (/^#include.*\Wlog.h/) {s/log.h/torlog.h/; }'
2010-06-25Fix a compile error when building with Libevent before 1.4.5-stableNick Mathewson
Older versions of Libevent forgot to declare enough function arguments constant.
2010-06-25Use Libevent 2.0's periodic timers where available.Nick Mathewson
These timers behave better with non-monotonic clocks than our old ones, and also try harder to make once-per-second events get called one second apart, rather than one-plus-epsilon seconds apart. This fixes bug 943 for everybody using Libevent 2.0 or later.
2010-04-19Fix a compilation warning on compat_libevent.c on some versions of windows ↵Nick Mathewson
libevent
2010-02-27Update copyright dates for files not in maint-0.2.1Nick Mathewson
2009-12-18Remove duplicate words and a duplicate newline.Karsten Loesing
2009-06-18Set EV_PERSIST flag on signal events with Libevent < 2.0.Nick Mathewson
Fix for bug 1007.
2009-06-16Fix bug 1001Sebastian Hahn
For compatibility with Libevent2, tor_event_new should accept a NULL base without crashing.
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).