diff options
author | Rod Vagg <rod@vagg.org> | 2017-09-13 12:51:23 +1000 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2017-10-02 01:16:11 -0300 |
commit | 13c74706ef872aa9ed5f17572b6466ce5af26b95 (patch) | |
tree | d096cf59846bb0941c564f3d462b7adc17f10fb8 /deps/cares/src/ares_library_init.c | |
parent | d0d1eba872f4b6165af4c39fb2f044de27695c48 (diff) | |
download | android-node-v8-13c74706ef872aa9ed5f17572b6466ce5af26b95.tar.gz android-node-v8-13c74706ef872aa9ed5f17572b6466ce5af26b95.tar.bz2 android-node-v8-13c74706ef872aa9ed5f17572b6466ce5af26b95.zip |
deps: upgrade to c-ares v1.13.0
PR-URL: https://github.com/nodejs/node/pull/15378
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'deps/cares/src/ares_library_init.c')
-rw-r--r-- | deps/cares/src/ares_library_init.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/cares/src/ares_library_init.c b/deps/cares/src/ares_library_init.c index c885a16c80..0a853d72cf 100644 --- a/deps/cares/src/ares_library_init.c +++ b/deps/cares/src/ares_library_init.c @@ -27,6 +27,7 @@ fpGetNetworkParams_t ares_fpGetNetworkParams = ZERO_NULL; fpSystemFunction036_t ares_fpSystemFunction036 = ZERO_NULL; fpGetAdaptersAddresses_t ares_fpGetAdaptersAddresses = ZERO_NULL; +fpGetBestRoute2_t ares_fpGetBestRoute2 = ZERO_NULL; #endif /* library-private global vars with source visibility restricted to this file */ @@ -71,6 +72,15 @@ static int ares_win32_init(void) support Windows 2000 anymore */ } + ares_fpGetBestRoute2 = (fpGetBestRoute2_t) + GetProcAddress(hnd_iphlpapi, "GetBestRoute2"); + if (!ares_fpGetBestRoute2) + { + /* This can happen on clients before Vista, I don't + think it should be an error, unless we don't want to + support Windows XP anymore */ + } + /* * When advapi32.dll is unavailable or advapi32.dll has no SystemFunction036, * also known as RtlGenRandom, which is the case for Windows versions prior |