From f67314c1c186fd5f5077f2f326fa2ae74f078b65 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Wed, 22 Mar 2017 14:36:16 +0100 Subject: [PATCH] Unbound event API without header compile fix --- src/ub_loop.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ub_loop.h b/src/ub_loop.h index e73667f5..bb57f5e5 100644 --- a/src/ub_loop.h +++ b/src/ub_loop.h @@ -43,18 +43,20 @@ #include "debug.h" #ifdef HAVE_UNBOUND_EVENT_H -#include +# include #else struct ub_event_base_vmt; struct ub_event_base { unsigned long magic; struct ub_event_base_vmt* vmt; }; -struct ub_event_base; +# ifndef _UB_EVENT_PRIMITIVES +# define _UB_EVENT_PRIMITIVES struct ub_ctx* ub_ctx_create_ub_event(struct ub_event_base* base); typedef void (*ub_event_callback_t)(void*, int, void*, int, int, char*); int ub_resolve_event(struct ub_ctx* ctx, const char* name, int rrtype, int rrclass, void* mydata, ub_event_callback_t callback, int* async_id); +# endif #endif typedef struct _getdns_ub_loop {