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 #ifdef WOLFSSL_PTHREADS
wolfSSL_Mutex m; wolfSSL_Mutex m;
#endif #endif
#ifndef WOLFSSL_NO_MALLOC #if !defined(WOLFSSL_NO_MALLOC) && !defined(WOLFSSL_USER_MUTEX)
wolfSSL_Mutex *mm = wc_InitAndAllocMutex(); wolfSSL_Mutex *mm = wc_InitAndAllocMutex();
if (mm == NULL) if (mm == NULL)
return -12700; return -12700;

View File

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