Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
unix: add EAI_NODATA #ifdef guard, freebsd doesn't have it
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Nov 3, 2011
1 parent e1bee05 commit 77a2477
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unix/core.c
Expand Up @@ -599,7 +599,11 @@ static int uv_getaddrinfo_done(eio_req* req) {

if (handle->retcode == 0) {
/* OK */
#if EAI_NODATA /* FreeBSD deprecated EAI_NODATA */
} else if (handle->retcode == EAI_NONAME || handle->retcode == EAI_NODATA) {
#else
} else if (handle->retcode == EAI_NONAME) {
#endif
uv__set_sys_error(handle->loop, ENOENT); /* FIXME compatibility hack */
} else {
handle->loop->last_err.code = UV_EADDRINFO;
Expand Down

0 comments on commit 77a2477

Please sign in to comment.