[hiredis] Fix feature ssl (#10044)

This commit is contained in:
Jack·Boos·Yu 2020-03-11 07:57:03 +08:00 committed by GitHub
parent a31f11b467
commit 2057f0339b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Source: hiredis
Version: 2019-11-2
Version: 2019-11-2-1
Homepage: https://github.com/redis/hiredis
Description: Hiredis is a minimalistic C client library for the Redis database.

View File

@ -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); \

View File

@ -11,6 +11,7 @@ vcpkg_from_github(
PATCHES
fix-feature-example.patch
support-static-in-win.patch
fix-timeval.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS