summaryrefslogtreecommitdiff
path: root/examples/example-ssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-ssl.c')
-rw-r--r--examples/example-ssl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/example-ssl.c b/examples/example-ssl.c
index c754177..b8ca442 100644
--- a/examples/example-ssl.c
+++ b/examples/example-ssl.c
@@ -4,7 +4,10 @@
#include <hiredis.h>
#include <hiredis_ssl.h>
-#include <win32.h>
+
+#ifdef _MSC_VER
+#include <winsock2.h> /* For struct timeval */
+#endif
int main(int argc, char **argv) {
unsigned int j;