mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
build: silence c-ares Windows compiler warnings
Silence the following compiler warning on Windows: `inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings` PR-URL: https://github.com/nodejs/node/pull/31311 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
027eaac373
commit
560df952c5
1 file changed
+4
-1
Vendored
+4
-1
@@ -112,7 +112,10 @@
|
||||
'defines': [ 'CARES_BUILDING_LIBRARY' ]
|
||||
}],
|
||||
[ 'OS=="win"', {
|
||||
'defines': [ 'CARES_PULL_WS2TCPIP_H=1' ],
|
||||
'defines': [
|
||||
'CARES_PULL_WS2TCPIP_H=1',
|
||||
'_WINSOCK_DEPRECATED_NO_WARNINGS',
|
||||
],
|
||||
'include_dirs': [ 'config/win32' ],
|
||||
'sources': [
|
||||
'src/config-win32.h',
|
||||
|
||||
Reference in new issue
Block a user