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.
This commit is contained in:
Ben Noordhuis 2013-04-02 21:52:00 +02:00
parent c43e8516b1
commit 3a8c3987d6

View File

@ -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 {