summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-07-12 14:45:34 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-07-13 16:23:17 +0200
commitf59a34d2e60d7b5d33c479f617375974aacb64b9 (patch)
tree80ee3e5e5b47fd8327a95a2b92cb278f694aa024
parent529c37156dfe05db9049a89b7ebb8585f49efccb (diff)
downloadlibgit2-f59a34d2e60d7b5d33c479f617375974aacb64b9.tar.gz
Only create openssl_locks if thread support is enabled
-rw-r--r--src/global.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/global.c b/src/global.c
index c72bfe890..f89c73256 100644
--- a/src/global.c
+++ b/src/global.c
@@ -19,7 +19,9 @@ git_mutex git__mwindow_mutex;
#ifdef GIT_SSL
# include <openssl/ssl.h>
SSL_CTX *git__ssl_ctx;
+# ifdef GIT_THREADS
static git_mutex *openssl_locks;
+# endif
#endif
static git_global_shutdown_fn git__shutdown_callbacks[MAX_SHUTDOWN_CB];