Don't include ub event defs twice

This commit is contained in:
Willem Toorop 2016-03-30 11:43:11 -03:00
parent f3bc6360bf
commit 79e44053d3
1 changed files with 4 additions and 2 deletions

View File

@ -1178,6 +1178,7 @@ const char *inet_ntop(int af, const void *src, char *dst, size_t size);
# ifdef HAVE_UNBOUND_EVENT_H
# include <unbound-event.h>
# else
# ifdef HAVE_UNBOUND_EVENT_API
# ifndef _UB_EVENT_PRIMITIVES
# define _UB_EVENT_PRIMITIVES
struct ub_event_base;
@ -1187,6 +1188,7 @@ 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
# endif
#endif
])