mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-24 22:35:15 +00:00
Fix warnings on MinGW
This commit is contained in:
parent
486485bc07
commit
3b6269aa08
|
@ -33,6 +33,10 @@
|
||||||
!defined(EFI32)
|
!defined(EFI32)
|
||||||
|
|
||||||
#if defined(POLARSSL_HAVE_IPV6)
|
#if defined(POLARSSL_HAVE_IPV6)
|
||||||
|
#ifdef _WIN32_WINNT
|
||||||
|
#undef _WIN32_WINNT
|
||||||
|
#endif
|
||||||
|
/* Enables getaddrinfo() & Co */
|
||||||
#define _WIN32_WINNT 0x0501
|
#define _WIN32_WINNT 0x0501
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -365,6 +369,7 @@ int net_bind( int *fd, const char *bind_ip, int port )
|
||||||
*/
|
*/
|
||||||
static int net_would_block( int fd )
|
static int net_would_block( int fd )
|
||||||
{
|
{
|
||||||
|
((void) fd);
|
||||||
return( WSAGetLastError() == WSAEWOULDBLOCK );
|
return( WSAGetLastError() == WSAEWOULDBLOCK );
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue