From 97235cae95142587aab5bcf9de3f2a9ec38cf217 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Mon, 5 Apr 1999 23:24:11 +0000 Subject: [PATCH] The file type PR_DESC_SOCKET_POLL is not defined by NSPR. --- nsprpub/pr/tests/prpoll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nsprpub/pr/tests/prpoll.c b/nsprpub/pr/tests/prpoll.c index 901231600f3d..fe1ec4557337 100644 --- a/nsprpub/pr/tests/prpoll.c +++ b/nsprpub/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) {