diff --git a/src/win/conpty.cc b/src/win/conpty.cc index 53e8cafb0..0ab391167 100644 --- a/src/win/conpty.cc +++ b/src/win/conpty.cc @@ -8,6 +8,12 @@ * with pseudo-terminal file descriptors. */ +// node versions lower than 10 define this as 0x502 which disables many of the definitions needed to compile +#include +#if NODE_MODULE_VERSION <= 57 + #define _WIN32_WINNT 0x600 +#endif + #include #include #include // PathCombine, PathIsRelative