MINGW-packages/mingw-w64-nodejs/0006-Define-_WIN32_WINNT-in-node.gypi.patch
2025-07-13 10:57:51 +03:00

24 lines
644 B
Diff

From b2a82cd1865cbf1dc21db290b1be33439646dd04 Mon Sep 17 00:00:00 2001
From: Alethea Rose <alethea@alethearose.com>
Date: Wed, 15 Feb 2017 02:03:24 -0500
Subject: [PATCH 06/23] Define _WIN32_WINNT in node.gypi
---
node.gypi | 1 +
1 file changed, 1 insertion(+)
diff --git a/node.gypi b/node.gypi
index a851fbbc..2c4c18c5 100644
--- a/node.gypi
+++ b/node.gypi
@@ -64,6 +64,7 @@
'NODE_PLATFORM="win"',
],
'defines': [
+ '_WIN32_WINNT=0x0603',
'FD_SETSIZE=1024',
# we need to use node's preferred "win32" rather than gyp's preferred "win"
'NODE_PLATFORM="win32"',
--
2.17.0.windows.1