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")
This commit is contained in:
Azat Khuzhin 2015-10-04 03:35:43 +03:00
parent 8240379a3c
commit f337296a5c

View File

@ -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;