mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-23 05:55:41 +02:00
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:
parent
faf153b7cf
commit
d34621a289
15
channels.c
15
channels.c
@ -42,8 +42,19 @@
|
|||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
#ifdef WIN32_FIXME
|
#ifdef WIN32_FIXME
|
||||||
#define ECONNABORTED WSAECONNABORTED
|
#ifdef ECONNABORTED
|
||||||
#define ECONNREFUSED WSAECONNREFUSED
|
#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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user