Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ports/hiredis/CONTROL
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
16 changes: 16 additions & 0 deletions ports/hiredis/fix-timeval.patch
Original file line number Diff line number Diff line change
@@ -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); \
1 change: 1 addition & 0 deletions ports/hiredis/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down