fix select

git-svn-id: file:///raid/svn-personal/tewi/trunk@86 8739d7e6-ffea-ec47-b151-bdff447c6205
This commit is contained in:
Nishi 2024-09-19 12:54:03 +00:00
parent 1727b8b4c3
commit 6d19b76344

View File

@ -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));