From c5061b2573c3e7bb2c6a1805da0c7ed1602b178b Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 15 Apr 2014 11:25:08 +0000 Subject: [PATCH] Fix for event2 compile on FreeBSD. git-svn-id: file:///svn/unbound/trunk@3118 be551aaa-1e26-0410-a405-d3ace91eadb9 --- daemon/unbound.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/daemon/unbound.c b/daemon/unbound.c index 4e2f1cb3d..fe56fe847 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -83,7 +83,13 @@ # include "util/mini_event.h" # endif #else -# include +# ifdef HAVE_EVENT_H +# include +# else +# include "event2/event.h" +# include "event2/event_struct.h" +# include "event2/event_compat.h" +# endif #endif #ifdef UB_ON_WINDOWS -- 2.47.2