Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17601 from dundargoc/revert/libuv
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/include/uv/win.h b/include/uv/win.h | ||
index f5f1d3a3..64a0dfd9 100644 | ||
--- a/include/uv/win.h | ||
+++ b/include/uv/win.h | ||
@@ -45,7 +45,14 @@ typedef struct pollfd { | ||
#endif | ||
|
||
#include <mswsock.h> | ||
+// Disable the typedef in mstcpip.h of MinGW. | ||
+#define _TCP_INITIAL_RTO_PARAMETERS _TCP_INITIAL_RTO_PARAMETERS__ | ||
+#define TCP_INITIAL_RTO_PARAMETERS TCP_INITIAL_RTO_PARAMETERS__ | ||
+#define PTCP_INITIAL_RTO_PARAMETERS PTCP_INITIAL_RTO_PARAMETERS__ | ||
#include <ws2tcpip.h> | ||
+#undef _TCP_INITIAL_RTO_PARAMETERS | ||
+#undef TCP_INITIAL_RTO_PARAMETERS | ||
+#undef PTCP_INITIAL_RTO_PARAMETERS | ||
#include <windows.h> | ||
|
||
#include <process.h> |