aboutsummaryrefslogtreecommitdiff
path: root/ports/hiredis/fix-timeval.patch
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-03-11 07:57:03 +0800
committerGitHub <noreply@github.com>2020-03-10 16:57:03 -0700
commit2057f0339be11c8684d07e4db8bfd85eb78d1cd9 (patch)
treedbb8efcdb56fffd448cb3bf82a8d47bc1f890837 /ports/hiredis/fix-timeval.patch
parenta31f11b467490b2fb5c0b41cb28167a6ec375f02 (diff)
downloadvcpkg-2057f0339be11c8684d07e4db8bfd85eb78d1cd9.tar.gz
vcpkg-2057f0339be11c8684d07e4db8bfd85eb78d1cd9.zip
[hiredis] Fix feature ssl (#10044)
Diffstat (limited to 'ports/hiredis/fix-timeval.patch')
-rw-r--r--ports/hiredis/fix-timeval.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/ports/hiredis/fix-timeval.patch b/ports/hiredis/fix-timeval.patch
new file mode 100644
index 000000000..f389de504
--- /dev/null
+++ b/ports/hiredis/fix-timeval.patch
@@ -0,0 +1,16 @@
+diff --git a/async_private.h b/async_private.h
+index d0133ae..7760b60 100644
+--- a/async_private.h
++++ b/async_private.h
+@@ -32,6 +32,11 @@
+ #ifndef __HIREDIS_ASYNC_PRIVATE_H
+ #define __HIREDIS_ASYNC_PRIVATE_H
+
++#ifdef _WIN32
++#include <time.h>
++#include <windows.h>
++#endif
++
+ #define _EL_ADD_READ(ctx) \
+ do { \
+ refreshTimeout(ctx); \