Changeset 10845


Ignore:
Timestamp:
Jun 25, 2010, 1:31:25 AM (12 years ago)
Author:
charles
Message:

(trunk libt) #3311 "MingW build of Transmission" -- possible win32 fix for the curl thread's select() call. probably broken... :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r10535 r10845  
    305305            t.tv_usec = usec % 1000000;
    306306
     307#ifdef WIN32
     308            /* see ticket #3311, comments 16-18 */
     309            if( !r_fd_set.fd_count && !w_fd.set.fd_count && !c_fd_set.fd_count )
     310                tr_wait( msec );
     311            else
     312                select( 0, r_fd_set.fd_count ? &r_fd_set : NULL,
     313                           w_fd.set.fd_count ? &w_fd_set : NULL,
     314                           c_fd.set.fd_count ? &c_fd_set : NULL, &t );
     315#else
    307316            select( max_fd+1, &r_fd_set, &w_fd_set, &c_fd_set, &t );
     317#endif
    308318        }
    309319
Note: See TracChangeset for help on using the changeset viewer.