From: Nick Mathewson Date: Sun, 28 Feb 2010 17:52:39 +0000 (-0500) Subject: Fix compilation with --disable-debug-mode X-Git-Tag: release-2.0.4-alpha~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad85908a4f6bd8fc1cbfb869fa0b4774f4249e0f;p=libevent Fix compilation with --disable-debug-mode --- diff --git a/event.c b/event.c index e66fb30c..34f93061 100644 --- a/event.c +++ b/event.c @@ -489,9 +489,11 @@ event_base_new_with_config(const struct event_config *cfg) struct event_base *base; int should_check_environment; +#ifndef _EVENT_DISABLE_DEBUG_MODE if (_event_debug_mode_on && !_event_debug_map_lock) { EVTHREAD_ALLOC_LOCK(_event_debug_map_lock, 0); } +#endif if ((base = mm_calloc(1, sizeof(struct event_base))) == NULL) { event_warn("%s: calloc", __func__);