diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-08-07 10:26:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 10:26:38 -0700 |
commit | 48696e7e5e0c4fedf15dac0ae974b7fa5526febf (patch) | |
tree | 4077d1725249d38af7aa61f3a456015121c7b3cb | |
parent | faa1c4863ab7b6de460838972b9ee4989a72a990 (diff) |
Don't use non-installed win32.h helper in examples (#863)
See: #862
-rw-r--r-- | examples/example-push.c | 1 | ||||
-rw-r--r-- | examples/example-ssl.c | 5 | ||||
-rw-r--r-- | examples/example.c | 5 |
3 files changed, 8 insertions, 3 deletions
diff --git a/examples/example-push.c b/examples/example-push.c index 2d4ab4d..6bc1205 100644 --- a/examples/example-push.c +++ b/examples/example-push.c @@ -31,7 +31,6 @@ #include <stdlib.h> #include <string.h> #include <hiredis.h> -#include <win32.h> #define KEY_COUNT 5 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; diff --git a/examples/example.c b/examples/example.c index 15dacbd..f1b8b4a 100644 --- a/examples/example.c +++ b/examples/example.c @@ -2,7 +2,10 @@ #include <stdlib.h> #include <string.h> #include <hiredis.h> -#include <win32.h> + +#ifdef _MSC_VER +#include <winsock2.h> /* For struct timeval */ +#endif int main(int argc, char **argv) { unsigned int j, isunix = 0; |