From: Nishi Date: Thu, 19 Sep 2024 12:54:03 +0000 (+0000) Subject: fix select X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=6d19b763445123217d50c4b7742ee13b23efa766;p=tewi.git fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@86 8739d7e6-ffea-ec47-b151-bdff447c6205 --- diff --git a/Server/server.c b/Server/server.c index b801dd6..0328977 100644 --- a/Server/server.c +++ b/Server/server.c @@ -764,7 +764,11 @@ void tw_server_loop(void) { } tv.tv_sec = 1; tv.tv_usec = 0; - int ret = select(sockcount, &fdset, NULL, NULL, &tv); +#ifdef __HAIKU__ + int ret = select(32, &fdset, NULL, NULL, &tv); +#else + int ret = select(FD_SETSIZE, &fdset, NULL, NULL, &tv); +#endif if(ret == -1) { #ifndef __MINGW32__ cm_log("Server", "Select failure: %s", strerror(errno));