From 6d19b763445123217d50c4b7742ee13b23efa766 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 19 Sep 2024 12:54:03 +0000 Subject: [PATCH] fix select git-svn-id: file:///raid/svn-personal/tewi/trunk@86 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/server.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)); -- 2.43.0