mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
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:
parent
8240379a3c
commit
f337296a5c
2
event.c
2
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user