diff options
Diffstat (limited to 'ares/adig.c')
-rw-r--r-- | ares/adig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/adig.c b/ares/adig.c index 6a23c5138..32e07217d 100644 --- a/ares/adig.c +++ b/ares/adig.c @@ -289,7 +289,7 @@ int main(int argc, char **argv) break; tvp = ares_timeout(channel, NULL, &tv); count = select(nfds, &read_fds, &write_fds, NULL, tvp); - if (count < 0 && errno != EINVAL) + if (count < 0 && SOCKERRNO != EINVAL) { perror("select"); return 1; |