PolarSSL: WIN32 threading support for entropy

Added WIN32 threading support for PolarSSL entropy if
--enable-threaded-resolver config flag is set and process.h can be found.
This commit is contained in:
Willem Sparreboom
2013-01-28 18:55:52 +01:00
committed by Daniel Stenberg
parent c35a10483d
commit f10006ee5f
2 changed files with 45 additions and 8 deletions

View File

@@ -68,10 +68,10 @@
#include "rawstr.h"
/* apply threading? */
#if defined(USE_THREADS_POSIX)
#if defined(USE_THREADS_POSIX) || defined(USE_THREADS_WIN32)
#define THREADING_SUPPORT
#include "polarsslthreadlock.h"
#endif /* USE_THREADS_POSIX */
#endif /* USE_THREADS_POSIX || USE_THREADS_WIN32 */
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>