mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 18:53:04 +08:00
[hiredis] Fix feature ssl (#10044)
This commit is contained in:
parent
a31f11b467
commit
2057f0339b
@ -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.
|
||||
|
||||
|
16
ports/hiredis/fix-timeval.patch
Normal file
16
ports/hiredis/fix-timeval.patch
Normal 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); \
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user