tor-0.2.6.2_alpha and git/HEAD fail to build with ./configure --enable-bufferevents
When tor is configured with ./configure --enable-bufferevent, the build fails with:
In file included from src/common/tortls.c:44:0: src/common/compat_libevent.h:75:32: error: unknown type name ‘tor_libevent_get_base’ MOCK_DECL(struct event_base *, tor_libevent_get_base, (void)); ^ src/common/compat_libevent.h:75:55: error: expected declaration specifiers or ‘...’ before ‘(’ token MOCK_DECL(struct event_base *, tor_libevent_get_base, (void)); ^ CC src/common/src_common_libor_event_testing_a-procmon.o
This happens because MOCK_DECL is defined in src/common/testsupport.h and yet testsupport.h is not included in src/common/compat_libevent.h.
This is fixed by just including testsupport.h.