]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix display of event loop method with libev.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 17 Jun 2020 12:32:57 +0000 (14:32 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 17 Jun 2020 12:32:57 +0000 (14:32 +0200)
doc/Changelog
util/ub_event.c

index 17bbc3badda00fbb618563d87f6971b80ace9903..00d2ecfcffbfbd30a3a00ec5400907d004635e38 100644 (file)
@@ -1,5 +1,6 @@
 17 June 2020: Wouter
        - Fix default explanation in man page for qname-minimisation-strict.
+       - Fix display of event loop method with libev.
 
 8 June 2020: Wouter
        - Mention tls name possible when tls is enabled for stub-addr in the
index 9af476ad40841f0693d5164cae4f56bb07819672..68f633bb0ef26405408fe16367292d413cdbd81a 100644 (file)
@@ -148,7 +148,7 @@ const char* ub_event_get_version(void)
        return event_get_version();
 }
 
-#if (defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && defined(EVBACKEND_SELECT)
+#if (defined(HAVE_EV_LOOP) || defined(HAVE_EV_DEFAULT_LOOP)) && defined(EV_FEATURE_BACKENDS)
 static const char* ub_ev_backend2str(int b)
 {
        switch(b) {
@@ -184,7 +184,7 @@ ub_get_event_sys(struct ub_event_base* base, const char** n, const char** s,
        *n = "libev";
        if (!b)
                b = (struct event_base*)ev_default_loop(EVFLAG_AUTO);
-#    ifdef EVBACKEND_SELECT
+#    ifdef EV_FEATURE_BACKENDS
        *m = ub_ev_backend2str(ev_backend((struct ev_loop*)b));
 #    else
        *m = "not obtainable";