diff --git a/mozilla/netwerk/test/TestProtocols.cpp b/mozilla/netwerk/test/TestProtocols.cpp index 6ade921ff07..ed4d121324b 100644 --- a/mozilla/netwerk/test/TestProtocols.cpp +++ b/mozilla/netwerk/test/TestProtocols.cpp @@ -311,7 +311,7 @@ InputTestConsumer::OnDataAvailable(nsIChannel* channel, URLLoadInfo* info = (URLLoadInfo*)context; while (aLength) { - size = min(aLength, sizeof(buf)); + size = PR_MIN(aLength, sizeof(buf)); rv = aIStream->Read(buf, size, &amt); if (NS_FAILED(rv)) {