From 3b6269aa0852abe03c7364e150a09982f44a865b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 21 Mar 2014 10:31:12 +0100 Subject: [PATCH] Fix warnings on MinGW --- library/net.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/net.c b/library/net.c index 24dd95e43..53bbf2fe7 100644 --- a/library/net.c +++ b/library/net.c @@ -33,6 +33,10 @@ !defined(EFI32) #if defined(POLARSSL_HAVE_IPV6) +#ifdef _WIN32_WINNT +#undef _WIN32_WINNT +#endif +/* Enables getaddrinfo() & Co */ #define _WIN32_WINNT 0x0501 #include #endif @@ -365,6 +369,7 @@ int net_bind( int *fd, const char *bind_ip, int port ) */ static int net_would_block( int fd ) { + ((void) fd); return( WSAGetLastError() == WSAEWOULDBLOCK ); } #else