diff options
author | wtc%netscape.com <devnull@localhost> | 1999-04-05 23:24:11 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1999-04-05 23:24:11 +0000 |
commit | 7be9e6ff761b2238bb7861cf783c4e2627eb9b1b (patch) | |
tree | 037181be9349018479b4053862186ce62377b16a | |
parent | 06864848560a7031e90f93e6719169d27fb1035c (diff) | |
download | nspr-hg-7be9e6ff761b2238bb7861cf783c4e2627eb9b1b.tar.gz |
The file type PR_DESC_SOCKET_POLL is not defined by NSPR.
-rw-r--r-- | pr/tests/prpoll.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pr/tests/prpoll.c b/pr/tests/prpoll.c index 90123160..fe1ec455 100644 --- a/pr/tests/prpoll.c +++ b/pr/tests/prpoll.c @@ -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) { |