aboutsummaryrefslogtreecommitdiff
path: root/ports/hiredis/fix-timeval.patch
blob: f389de5042f44de8629ce75b275ce49fb3f82ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);                                      \