Skip to content

Commit

Permalink
Test case should honor flag HAVE_WRITEV rather than WIN32 (c-ares#344)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
bgaifullin authored and sergepetrenko committed Jul 29, 2022
1 parent 1140637 commit ed05b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ares-test-internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed05b4e

Please sign in to comment.