vcpkg/ports/hiredis/fix-pthread.h-not-found-on-windows.patch
NancyLi1013 fc761ebb72
[hiredis] Fix feature ssl build error on windows (#12354)
* [hiredis] Fix feature ssl build error on windows

* Fix feature example build error on windows
2020-07-15 15:55:31 -07:00

17 lines
276 B
Diff

diff --git a/ssl.c b/ssl.c
index 78ab9e4..768f304 100644
--- a/ssl.c
+++ b/ssl.c
@@ -34,7 +34,11 @@
#include "async.h"
#include <assert.h>
+#ifdef _WIN32
+#include <windows.h>
+#else
#include <pthread.h>
+#endif
#include <errno.h>
#include <string.h>