Commit f59a34d2e60d7b5d33c479f617375974aacb64b9

Jacques Germishuys 2014-07-12T14:45:34

Only create openssl_locks if thread support is enabled

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/global.c b/src/global.c
index c72bfe8..f89c732 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];