From: Wouter Wijngaards Date: Tue, 15 Apr 2014 11:25:08 +0000 (+0000) Subject: Fix for event2 compile on FreeBSD. X-Git-Tag: release-1.5.0rc1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5061b2573c3e7bb2c6a1805da0c7ed1602b178b;p=thirdparty%2Funbound.git Fix for event2 compile on FreeBSD. git-svn-id: file:///svn/unbound/trunk@3118 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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