Changeset 88 in Main for trunk/Server


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

fix select

Location:
trunk/Server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/http.c

    r70 r88  
    7272                if(ssl == NULL || !SSL_has_pending(ssl)) {
    7373#endif
     74#ifdef __HAIKU__
     75                        int n = select(32, &fds, NULL, NULL, &tv);
     76#else
    7477                        int n = select(FD_SETSIZE, &fds, NULL, NULL, &tv);
     78#endif
    7579                        if(n <= 0) {
    7680                                cm_log("HTTP", "Timeout, disconncting");
  • trunk/Server/server.c

    r87 r88  
    8080
    8181void close_socket(int sock) {
    82 #if defined(__MINGW32__) || defined(__HAIKU__)
     82#if defined(__MINGW32__)
    8383        closesocket(sock);
    8484#else
Note: See TracChangeset for help on using the changeset viewer.