From 27da4f4aa1140ac7ac39ff55b3dc82c776521360 Mon Sep 17 00:00:00 2001 From: Daniel Griffen Date: Fri, 24 May 2019 18:56:37 -0700 Subject: [PATCH] enable compiling against node 8 --- src/win/conpty.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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