diff options
Diffstat (limited to 'examples')
-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; |