define guards to prevent warnings

This commit is contained in:
Tim Angus 2025-07-14 11:55:44 +01:00
parent d89925ffba
commit 20634976e9

View File

@ -46,10 +46,22 @@ typedef int socklen_t;
typedef unsigned short sa_family_t;
# endif
# define EAGAIN WSAEWOULDBLOCK
# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
# define EAFNOSUPPORT WSAEAFNOSUPPORT
# define ECONNRESET WSAECONNRESET
# ifndef EAGAIN
# define EAGAIN WSAEWOULDBLOCK
# endif
# ifndef EADDRNOTAVAIL
# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
# endif
# ifndef EAFNOSUPPORT
# define EAFNOSUPPORT WSAEAFNOSUPPORT
# endif
# ifndef ECONNRESET
# define ECONNRESET WSAECONNRESET
# endif
typedef u_long ioctlarg_t;
# define socketError WSAGetLastError( )