diff --git a/deps/cares/cares.gyp b/deps/cares/cares.gyp index be7931f7743db1..0b5cd02c21dde1 100644 --- a/deps/cares/cares.gyp +++ b/deps/cares/cares.gyp @@ -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',