The file type PR_DESC_SOCKET_POLL is not defined by NSPR.
authorwtc%netscape.com
Mon, 05 Apr 1999 23:24:11 +0000
changeset 531 cc2481cf7ca0f6778e48ee3c9a800426451242b0
parent 530 d140f666f0ab91a5fbcbea86f9408ba91f92b658
child 536 c91844c163c65ee2d1da652e2dadc804ab711480
push idunknown
push userunknown
push dateunknown
The file type PR_DESC_SOCKET_POLL is not defined by NSPR.
pr/tests/prpoll.c
--- a/pr/tests/prpoll.c
+++ b/pr/tests/prpoll.c
@@ -290,17 +290,18 @@ int main(int argc, char **argv)
 
 		for (j = 3; j < npds; j++) {
 			PR_ASSERT((pds[j].out_flags & PR_POLL_WRITE) == 0
 				&& (pds[j].out_flags & PR_POLL_EXCEPT) == 0);
 			if (pds[j].out_flags & PR_POLL_READ) {
 				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) {
 						fprintf(stderr, "recv() failed\n");
 						exit(1);
 					}
 					printf("Server read %d bytes from native fd %d\n",nBytes,
 										PR_FileDesc2NativeHandle(pds[j].fd));