summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
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;