]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fix pluggable backend2str.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 10 Mar 2016 14:51:54 +0000 (14:51 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 10 Mar 2016 14:51:54 +0000 (14:51 +0000)
git-svn-id: file:///svn/unbound/trunk@3662 be551aaa-1e26-0410-a405-d3ace91eadb9

util/ub_event_pluggable.c

index a9448a61884b66b5243fa5817c2f3b39289f51b6..61695d83ee6f988245789a9a325eaa725b377df1 100644 (file)
@@ -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