diff --git a/src/cfgfile.c b/src/cfgfile.c index c5211830..b03a3ac9 100644 --- a/src/cfgfile.c +++ b/src/cfgfile.c @@ -1053,7 +1053,7 @@ int config_parse_file(const char *filename, ice_config_t *configuration) ICECAST_LOG_ERROR("Client limit (%i) is too small for given source limit (%i)", configuration->client_limit, configuration->source_limit); } -#ifndef HAVE_POLL +#if !defined(HAVE_POLL) && !defined(_WIN32) if (configuration->client_limit > (FD_SETSIZE - 32)) { configuration->config_problems |= CONFIG_PROBLEM_VALIDATION; ICECAST_LOG_ERROR("Client limit (%i) is too big for FD_SETSIZE (%i)", configuration->client_limit, FD_SETSIZE); diff --git a/src/connection.c b/src/connection.c index bdea9bfd..518fe04c 100644 --- a/src/connection.c +++ b/src/connection.c @@ -471,7 +471,7 @@ connection_t *connection_create(sock_t sock, listensocket_t *listensocket_real, if (!matchfile_match_allow_deny(allowed_ip, banned_ip, ip)) return NULL; -#ifndef HAVE_POLL +#if !defined(HAVE_POLL) && !defined(_WIN32) if (sock >= FD_SETSIZE) { ICECAST_LOG_ERROR("Can not create connection: System filehandle set overflow"); return NULL; diff --git a/src/listensocket.c b/src/listensocket.c index 4e8e0c5e..62a3d6d3 100644 --- a/src/listensocket.c +++ b/src/listensocket.c @@ -726,7 +726,7 @@ static int listensocket_refsock(listensocket_t *self, bool prefer_inet6) return -1; } -#ifndef HAVE_POLL +#if !defined(HAVE_POLL) && !defined(_WIN32) if (self->sock >= FD_SETSIZE) { sock_close(self->sock); self->sock = SOCK_ERROR;