diff --git a/ports/hiredis/CONTROL b/ports/hiredis/CONTROL index 67534fac38b..0bb9cb9d9e7 100644 --- a/ports/hiredis/CONTROL +++ b/ports/hiredis/CONTROL @@ -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. diff --git a/ports/hiredis/fix-timeval.patch b/ports/hiredis/fix-timeval.patch new file mode 100644 index 00000000000..f389de5042f --- /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 ++#include ++#endif ++ + #define _EL_ADD_READ(ctx) \ + do { \ + refreshTimeout(ctx); \ diff --git a/ports/hiredis/portfile.cmake b/ports/hiredis/portfile.cmake index bcd8ba1e6cb..833d428ee11 100644 --- a/ports/hiredis/portfile.cmake +++ b/ports/hiredis/portfile.cmake @@ -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