define guards to prevent warnings

This commit is contained in:
Tim Angus committed 2025-07-14 12:24:16 +01:00
1 parent d89925ffba
commit 20634976e9
1 file changed
+16 -4
+16 -4
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( )