From f52246548f297ecef4960cf47139dc114fe3e465 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Wed, 25 Oct 2000 21:49:36 +0000 Subject: [PATCH] Compatibility with GNU winsock.h --- src/sbbs3/sbbsinet.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/sbbsinet.h b/src/sbbs3/sbbsinet.h index a272a7cfb2..6e331ef0ee 100644 --- a/src/sbbs3/sbbsinet.h +++ b/src/sbbs3/sbbsinet.h @@ -41,10 +41,15 @@ /***************/ /* OS-specific */ /***************/ -#if defined _WIN32 || defined __OS2__ /* WinSock */ +#if defined _WIN32 || defined __OS2__ /* Use WinSock */ #include <winsock.h> /* socket/bind/etc. */ +/* Let's agree on a standard WinSock symbol here, people */ +#ifndef _WINSOCKAPI_ +#define _WINSOCKAPI_ +#endif + #elif defined __unix__ /* Unix-variant */ #include <netdb.h> /* gethostbyname */ @@ -64,8 +69,11 @@ #undef EINTR #define EINTR WSAEINTR +#undef ENOTSOCK #define ENOTSOCK WSAENOTSOCK +#undef EWOULDBLOCK #define EWOULDBLOCK WSAEWOULDBLOCK +#undef ECONNRESET #define ECONNRESET WSAECONNRESET #define s_addr S_un.S_addr -- GitLab