From: Wouter Wijngaards Date: Thu, 10 Mar 2016 14:51:54 +0000 (+0000) Subject: Fix pluggable backend2str. X-Git-Tag: release-1.5.9rc1~85 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=465e8341139ab885da0024d6c40cdadb4c5e9e6c;p=thirdparty%2Funbound.git Fix pluggable backend2str. git-svn-id: file:///svn/unbound/trunk@3662 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/util/ub_event_pluggable.c b/util/ub_event_pluggable.c index a9448a618..61695d83e 100644 --- a/util/ub_event_pluggable.c +++ b/util/ub_event_pluggable.c @@ -401,12 +401,12 @@ ub_get_event_sys(struct ub_event_base* ub_base, const char** n, const char** s, */ assert(b); *s = event_get_version(); -# ifdef HAVE_EVENT_BASE_GET_METHOD - *n = "pluggable-libevent"; - *m = event_base_get_method(b); -# elif defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP) +# if defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP) *n = "pluggable-libev"; *m = ub_ev_backend2str_pluggable(ev_backend((struct ev_loop*)b)); +# elif defined(HAVE_EVENT_BASE_GET_METHOD) + *n = "pluggable-libevent"; + *m = event_base_get_method(b); # else *m = "not obtainable"; # endif