POSIX reserves recv to potentially be a macro. Wrap it around parens to avoid conflict. MOZILLA_1_4_BRANCH
authorcaillon%redhat.com
Fri, 11 Mar 2005 00:10:11 +0000
branchMOZILLA_1_4_BRANCH
changeset 3328 abfc913ee685
parent 2995 c188a11ae0c4
push idunknown
push userunknown
push dateunknown
bugs285020
POSIX reserves recv to potentially be a macro. Wrap it around parens to avoid conflict. Bug 285020
pr/src/io/prmwait.c
--- a/pr/src/io/prmwait.c
+++ b/pr/src/io/prmwait.c
@@ -644,17 +644,17 @@ static PRMWGroupState MW_TestForShutdown
 static void _MW_InitialRecv(PRCList *io_ready)
 {
     PRRecvWait *desc = (PRRecvWait*)io_ready;
     if ((NULL == desc->buffer.start)
     || (0 == desc->buffer.length))
         desc->bytesRecv = 0;
     else
     {
-        desc->bytesRecv = desc->fd->methods->recv(
+        desc->bytesRecv = (desc->fd->methods->recv)(
             desc->fd, desc->buffer.start,
             desc->buffer.length, 0, desc->timeout);
         if (desc->bytesRecv < 0)  /* SetError should already be there */
             desc->outcome = PR_MW_FAILURE;
     }
 }  /* _MW_InitialRecv */
 #endif