]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
ifdef for NSS compile.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 1 Aug 2012 13:08:58 +0000 (13:08 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 1 Aug 2012 13:08:58 +0000 (13:08 +0000)
git-svn-id: file:///svn/unbound/trunk@2734 be551aaa-1e26-0410-a405-d3ace91eadb9

util/net_help.c

index 6e71d544bc960fb191f511886c0e164a71cb607c..ced7617011a2526b7a7e77aa06ebee4cc468eb9a 100644 (file)
@@ -726,6 +726,7 @@ void* outgoing_ssl_fd(void* sslctx, int fd)
 #endif
 }
 
+#ifdef OPENSSL_THREADS
 /** global lock list for openssl locks */
 static lock_basic_t *ub_openssl_locks = NULL;
 
@@ -746,6 +747,7 @@ ub_crypto_lock_cb(int mode, int type, const char *ATTR_UNUSED(file),
                lock_basic_unlock(&ub_openssl_locks[type]);
        }
 }
+#endif /* OPENSSL_THREADS */
 
 int ub_openssl_lock_init(void)
 {