mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 20:29:27 +00:00
Only create openssl_locks if thread support is enabled
This commit is contained in:
parent
529c37156d
commit
f59a34d2e6
@ -19,7 +19,9 @@ git_mutex git__mwindow_mutex;
|
|||||||
#ifdef GIT_SSL
|
#ifdef GIT_SSL
|
||||||
# include <openssl/ssl.h>
|
# include <openssl/ssl.h>
|
||||||
SSL_CTX *git__ssl_ctx;
|
SSL_CTX *git__ssl_ctx;
|
||||||
|
# ifdef GIT_THREADS
|
||||||
static git_mutex *openssl_locks;
|
static git_mutex *openssl_locks;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static git_global_shutdown_fn git__shutdown_callbacks[MAX_SHUTDOWN_CB];
|
static git_global_shutdown_fn git__shutdown_callbacks[MAX_SHUTDOWN_CB];
|
||||||
|
Loading…
Reference in New Issue
Block a user