fix linux compile error

This commit is contained in:
andyque 2015-01-04 09:40:10 +08:00
parent c9a2860ce2
commit 7328c2eea0
1 changed files with 5 additions and 0 deletions

View File

@ -627,7 +627,12 @@ void Downloader::groupBatchDownload(const DownloadUnits &units)
FD_ZERO(&fdread);
FD_ZERO(&fdwrite);
FD_ZERO(&fdexcep);
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &select_tv);
#else
rc = curl_multi_wait(multi_handle,nullptr, 0, MAX_WAIT_MSECS, &maxfd);
#endif
switch(rc)
{