]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
src/common/compat_libevent.h: include testsupport.h
authorAnthony G. Basile <blueness@gentoo.org>
Thu, 8 Jan 2015 17:11:28 +0000 (12:11 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 12 Jan 2015 06:03:47 +0000 (01:03 -0500)
When tor is configured with --enable-bufferevents, the build fails
because compat_libevent.h makes use of the macro MOCK_DECL() which
is defined in testsupport.h, but not included.  We add the include.

src/common/compat_libevent.h

index 69259e7ed6bfb2fc702b5075e4b5e0203a29c7de..6bbfae005648c33ebd0d387bdde2fd308b3dbb22 100644 (file)
@@ -5,6 +5,7 @@
 #define TOR_COMPAT_LIBEVENT_H
 
 #include "orconfig.h"
+#include "testsupport.h"
 
 struct event;
 struct event_base;