Force defines for certain errno values.

The visual studio errno.h file is conflicting with no-machine errno
constants.  Force the constants we need and define
_CRT_NO_POSIX_ERROR_CODES to avoid redefining them.  This fixes port
forwarding for visual studio implementation.
This commit is contained in:
dkulwin 2015-11-10 15:51:24 -06:00
parent faf153b7cf
commit d34621a289

View File

@ -42,8 +42,19 @@
#include "includes.h"
#ifdef WIN32_FIXME
#define ECONNABORTED WSAECONNABORTED
#define ECONNREFUSED WSAECONNREFUSED
#ifdef ECONNABORTED
#undef ECONNABORTED
#endif
#define ECONNABORTED WSAECONNABORTED
#ifdef ECONNREFUSED
#undef ECONNREFUSED
#endif
#define ECONNREFUSED WSAECONNREFUSED
#ifdef EINPROGRESS
#undef EINPROGRESS
#endif
#define EINPROGRESS WSAEINPROGRESS
#define _CRT_NO_POSIX_ERROR_CODES
#endif