From: Wouter Wijngaards Date: Fri, 4 Jul 2014 07:43:20 +0000 (+0000) Subject: cleaner compile without locks enabled. X-Git-Tag: release-1.5.0rc1~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=436d057765e18f8961da1d255929d9c71ac43052;p=thirdparty%2Funbound.git cleaner compile without locks enabled. git-svn-id: file:///svn/unbound/trunk@3157 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/util/log.c b/util/log.c index a3bffbf38..f90efa71c 100644 --- a/util/log.c +++ b/util/log.c @@ -68,8 +68,10 @@ static FILE* logfile = 0; static int key_created = 0; /** pthread key for thread ids in logfile */ static ub_thread_key_t logkey; +#ifndef THREADS_DISABLED /** pthread mutex to protect FILE* */ static lock_quick_t log_lock; +#endif /** the identity of this executable/process */ static const char* ident="unbound"; #if defined(HAVE_SYSLOG_H) || defined(UB_ON_WINDOWS)