зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 285020: wrap the member access in parenthesis because recv
may be defined as a macro on some platforms. The patch is contributed by Chris Aillon of Red Hat. r=wtc.
This commit is contained in:
Родитель
80cc46ef48
Коммит
42509e3e89
|
@ -652,7 +652,7 @@ static void _MW_InitialRecv(PRCList *io_ready)
|
|||
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 */
|
||||
|
|
Загрузка…
Ссылка в новой задаче