From: Azat Khuzhin Date: Sun, 4 Oct 2015 00:35:43 +0000 (+0300) Subject: Fix checking for make_base_notifiable() X-Git-Tag: release-2.1.6-beta~90^2~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f337296a5cf259903c4f37e67c1a7f903af39fa0;p=libevent Fix checking for make_base_notifiable() Fixes: a068f2e5 ("event_debug_created_threadable_ctx_: fix compilation without debug mode") Found-after: 3e56da23 ("travis: add builds without debug mode into matrix") --- diff --git a/event.c b/event.c index 2e6b5350..7125adb9 100644 --- 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;