From f59a34d2e60d7b5d33c479f617375974aacb64b9 Mon Sep 17 00:00:00 2001 From: Jacques Germishuys Date: Sat, 12 Jul 2014 14:45:34 +0200 Subject: [PATCH] Only create openssl_locks if thread support is enabled --- src/global.c | 2 ++ 1 file changed, 2 insertions(+) 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 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];