roken/mini_inetd.c: Don't check against FD_SETSIZE unless necessary

This commit is contained in:
Asanka Herath
2010-06-18 17:59:48 -04:00
parent 63e3aedf8c
commit 31b2dc9c48

View File

@@ -124,7 +124,7 @@ mini_inetd_addrinfo (struct addrinfo *ai, rk_socket_t *ret_socket)
fds[i] = rk_INVALID_SOCKET;
continue;
}
#ifdef FD_SETSIZE
#ifndef NO_LIMIT_FD_SETSIZE
if (fds[i] >= FD_SETSIZE)
errx (1, "fd too large");
#endif