aboutsummaryrefslogtreecommitdiff
path: root/ares/windows_port.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/windows_port.c')
-rw-r--r--ares/windows_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/windows_port.c b/ares/windows_port.c
index dabe0bccc..d9c358e2f 100644
--- a/ares/windows_port.c
+++ b/ares/windows_port.c
@@ -105,7 +105,7 @@ ares_writev (ares_socket_t s, const struct iovec *vector, size_t count)
buffer = bp = (char*) alloca (bytes);
if (!buffer)
{
- errno = ENOMEM;
+ SET_ERRNO(ENOMEM);
return (-1);
}