Test case should honor flag HAVE_WRITEV rather than WIN32 (#344)

Test cases where not honoring the HAVE_WRITEV flag but instead using WIN32 to determine if WRITEV was available or not.  This patch fixes that.

Fix By: Bulat Gaifullin (@bgaifullin)
pull/94/head^2
Bulat Gaifullin 4 years ago committed by GitHub
parent 2c32de2aa3
commit 46b406f6c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test/ares-test-internal.cc

@ -578,7 +578,7 @@ const struct ares_socket_functions VirtualizeIO::default_functions = {
#endif
},
[](ares_socket_t s, const struct iovec * vec, int len, void *) {
#ifdef _WIN32
#ifndef HAVE_WRITEV
return ares_writev(s, vec, len);
#else
return :: writev(s, vec, len);

Loading…
Cancel
Save