mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
The file type PR_DESC_SOCKET_POLL is not defined by NSPR.
This commit is contained in:
parent
dc1a1f6e96
commit
97235cae95
@ -295,7 +295,8 @@ int main(int argc, char **argv)
|
||||
PRInt32 nBytes;
|
||||
|
||||
nEvents++;
|
||||
if (PR_GetDescType(pds[j].fd) == PR_DESC_SOCKET_POLL) {
|
||||
/* XXX: This call is a hack and should be fixed */
|
||||
if (PR_GetDescType(pds[j].fd) == (PRDescType) 0) {
|
||||
nBytes = recv(PR_FileDesc2NativeHandle(pds[j].fd), buf,
|
||||
sizeof(buf), 0);
|
||||
if (nBytes == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user