Changeset 86 in Main for trunk


Ignore:
Timestamp:
Sep 19, 2024, 9:54:03 PM (2 months ago)
Author:
Nishi
Message:

fix select

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/server.c

    r85 r86  
    765765                tv.tv_sec = 1;
    766766                tv.tv_usec = 0;
    767                 int ret = select(sockcount, &fdset, NULL, NULL, &tv);
     767#ifdef __HAIKU__
     768                int ret = select(32, &fdset, NULL, NULL, &tv);
     769#else
     770                int ret = select(FD_SETSIZE, &fdset, NULL, NULL, &tv);
     771#endif
    768772                if(ret == -1) {
    769773#ifndef __MINGW32__
Note: See TracChangeset for help on using the changeset viewer.