commit | 1e2eae02cbaa12db1437e895ec7c0a7665a60c89 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Wed Apr 29 01:26:03 2015 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Wed Apr 29 02:08:34 2015 +0200 |
tree | 33a7c32f0c7fe98f93fd2ef81a5cfedc38a51d78 | |
parent | eab147c4d0d0aa491b299e186fbc97666d05f9b3 [diff] [blame] |
Adapt pthread implementation to recent changes
diff --git a/library/x509_crt.c b/library/x509_crt.c index c3dfd57..529e96b 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c
@@ -959,7 +959,10 @@ } #if defined(MBEDTLS_THREADING_PTHREAD) -static mbedtls_threading_mutex_t readdir_mutex = PTHREAD_MUTEX_INITIALIZER; +static mbedtls_threading_mutex_t readdir_mutex = { + PTHREAD_MUTEX_INITIALIZER, + 1 +}; #endif int mbedtls_x509_crt_parse_path( mbedtls_x509_crt *chain, const char *path )