From 25e7247906a3f726f4f434e90e2162be82da49bc Mon Sep 17 00:00:00 2001 From: deuce <> Date: Fri, 27 May 2011 23:05:53 +0000 Subject: [PATCH] Do horrible demeaning things to work around broken Borland header file. --- src/syncterm/conn.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/syncterm/conn.c b/src/syncterm/conn.c index 65853a5ad3..2b1fc7ca90 100644 --- a/src/syncterm/conn.c +++ b/src/syncterm/conn.c @@ -11,6 +11,24 @@ #include "sockwrap.h" #include "threadwrap.h" +#ifdef _WIN32 + #undef socklen_t + // Borland hack (broken header) + #ifdef __BORLANDC__ + #define _MSC_VER 1 + #endif + #include "ws2tcpip.h" + #ifdef __BORLANDC__ + #undef _MSC_VER + #endif + #ifndef AI_ADDRCONFIG + #define AI_ADDRCONFIG 0x0400 // Vista or later. + #endif + #ifndef AI_NUMERICSERV + #define AI_NUMERICSERV 0 // No supported by Windows + #endif +#endif + #include "bbslist.h" #include "uifcinit.h" #include "conn.h" -- GitLab