]> granicus.if.org Git - libevent/commitdiff
Fix checking for make_base_notifiable()
authorAzat Khuzhin <a3at.mail@gmail.com>
Sun, 4 Oct 2015 00:35:43 +0000 (03:35 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sun, 4 Oct 2015 00:37:26 +0000 (03:37 +0300)
Fixes: a068f2e5 ("event_debug_created_threadable_ctx_: fix compilation without
debug mode")
Found-after: 3e56da23 ("travis: add builds without debug mode into matrix")

event.c

diff --git a/event.c b/event.c
index 2e6b53502f7ded380f4e44c585788653f7319ffb..7125adb9f80ac4307ef4af1e172fdaf3980ee8f9 100644 (file)
--- a/event.c
+++ b/event.c
@@ -675,7 +675,7 @@ event_base_new_with_config(const struct event_config *cfg)
        event_debug_created_threadable_ctx_ = 1;
 #endif
 
-#ifndef EVENT__DISABLE_DEBUG_MODE
+#ifndef EVENT__DISABLE_THREAD_SUPPORT
        if (EVTHREAD_LOCKING_ENABLED() &&
            (!cfg || !(cfg->flags & EVENT_BASE_FLAG_NOLOCK))) {
                int r;