From 3a8c3987d6dcc291caef9455461d9f7d5a3443e8 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 2 Apr 2013 21:52:00 +0200 Subject: [PATCH] sunos: fix syntax error introduced in 76d831e4 Moving around the code for #754 inadvertently introduced a syntax error in a SunOS-only code path. The syntax error didn't actually manifest at build time because the #elif it was wrapped in was, alas, wrong as well. --- src/unix/getaddrinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/unix/getaddrinfo.c b/src/unix/getaddrinfo.c index 0e50faa0..994e0f38 100644 --- a/src/unix/getaddrinfo.c +++ b/src/unix/getaddrinfo.c @@ -87,8 +87,9 @@ static void uv__getaddrinfo_done(struct uv__work* w, int status) { #if defined(EAI_NODATA) /* Newer FreeBSDs don't have EAI_NODATA. */ else if (req->retcode == EAI_NODATA) uv__set_sys_error(req->loop, ENOENT); -#elif defined(__sun) - if (req->retcode == EAI_MEMORY && hostlen >= MAXHOSTNAMELEN) { +#endif +#if defined(__sun) + else if (req->retcode == EAI_MEMORY && hostlen >= MAXHOSTNAMELEN) uv__set_sys_error(req->loop, ENOENT); #endif else {