]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
cleaner compile without locks enabled.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 4 Jul 2014 07:43:20 +0000 (07:43 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 4 Jul 2014 07:43:20 +0000 (07:43 +0000)
git-svn-id: file:///svn/unbound/trunk@3157 be551aaa-1e26-0410-a405-d3ace91eadb9

util/log.c

index a3bffbf384f274105a8a1c16704e882b21087127..f90efa71c75f2a922e6cdcbd3b5bedd3889b4aa8 100644 (file)
@@ -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)