mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Fix warnings on MinGW
This commit is contained in:
parent
486485bc07
commit
3b6269aa08
1 changed files with 5 additions and 0 deletions
|
|
@ -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 <ws2tcpip.h>
|
||||
#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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue