fix guard

This commit is contained in:
Takashi Kojo
2020-07-02 14:08:05 +09:00
parent 55bb95823c
commit fd257ee8b9
2 changed files with 5 additions and 3 deletions

View File

@ -27880,7 +27880,7 @@ int mutex_test(void)
#ifdef WOLFSSL_PTHREADS
wolfSSL_Mutex m;
#endif
#ifndef WOLFSSL_NO_MALLOC
#if !defined(WOLFSSL_NO_MALLOC) && !defined(WOLFSSL_USER_MUTEX)
wolfSSL_Mutex *mm = wc_InitAndAllocMutex();
if (mm == NULL)
return -12700;

View File

@ -183,8 +183,10 @@
/* do nothing */
#else
#ifndef SINGLE_THREADED
#define WOLFSSL_PTHREADS
#include <pthread.h>
#ifndef WOLFSSL_USER_MUTEX
#define WOLFSSL_PTHREADS
#include <pthread.h>
#endif
#endif
#if defined(OPENSSL_EXTRA) && !defined(NO_FILESYSTEM)
#include <unistd.h> /* for close of BIO */