diff options
author | rene <rene@FreeBSD.org> | 2014-05-09 19:49:43 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2014-05-09 19:49:43 +0800 |
commit | c5ca462c6ebfde4b487eef1b6c58a129c3298535 (patch) | |
tree | 44555a542d52832ac10d3d3235e632053ea52072 | |
parent | 854899eeafab6ab2be791d1f86f31e30654e8a3e (diff) | |
download | freebsd-ports-gnome-c5ca462c6ebfde4b487eef1b6c58a129c3298535.tar.gz freebsd-ports-gnome-c5ca462c6ebfde4b487eef1b6c58a129c3298535.tar.zst freebsd-ports-gnome-c5ca462c6ebfde4b487eef1b6c58a129c3298535.zip |
Fix build on i386 with GCC
PR: ports/189286
Submitted by: Lena <lena@lena.kiev.ua>
-rw-r--r-- | www/chromium/files/patch-net__quic__congestion_control__inter_arrival_overuse_detector.cc | 11 | ||||
-rw-r--r-- | www/chromium/files/patch-net__quic__congestion_control__tcp_cubic_sender.cc | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/www/chromium/files/patch-net__quic__congestion_control__inter_arrival_overuse_detector.cc b/www/chromium/files/patch-net__quic__congestion_control__inter_arrival_overuse_detector.cc new file mode 100644 index 000000000000..6f70d9bbe7ba --- /dev/null +++ b/www/chromium/files/patch-net__quic__congestion_control__inter_arrival_overuse_detector.cc @@ -0,0 +1,11 @@ +--- net/quic/congestion_control/inter_arrival_overuse_detector.cc.orig 2014-04-24 22:35:53.000000000 +0200 ++++ net/quic/congestion_control/inter_arrival_overuse_detector.cc 2014-05-09 10:29:30.000000000 +0200 +@@ -165,7 +165,7 @@ + if ((sigma_delta * kDetectTimeDiffStandardDeviation > + estimated_congestion_delay_.ToMicroseconds()) && + (sigma_delta * kDetectDriftStandardDeviation > +- std::abs(accumulated_deltas_.ToMicroseconds()))) { ++ std::labs(accumulated_deltas_.ToMicroseconds()))) { + if (delta_estimate_ != kBandwidthSteady) { + DVLOG(1) << "Bandwidth estimate drift: Steady" + << " mean:" << delta_mean_ diff --git a/www/chromium/files/patch-net__quic__congestion_control__tcp_cubic_sender.cc b/www/chromium/files/patch-net__quic__congestion_control__tcp_cubic_sender.cc new file mode 100644 index 000000000000..1eb2d5897ca2 --- /dev/null +++ b/www/chromium/files/patch-net__quic__congestion_control__tcp_cubic_sender.cc @@ -0,0 +1,11 @@ +--- net/quic/congestion_control/tcp_cubic_sender.cc.orig 2014-04-24 22:35:53.000000000 +0200 ++++ net/quic/congestion_control/tcp_cubic_sender.cc 2014-05-09 10:57:21.000000000 +0200 +@@ -341,7 +341,7 @@ + mean_deviation_ = QuicTime::Delta::FromMicroseconds( + kOneMinusBeta * mean_deviation_.ToMicroseconds() + + kBeta * +- std::abs(smoothed_rtt_.ToMicroseconds() - rtt.ToMicroseconds())); ++ std::labs(smoothed_rtt_.ToMicroseconds() - rtt.ToMicroseconds())); + smoothed_rtt_ = QuicTime::Delta::FromMicroseconds( + kOneMinusAlpha * smoothed_rtt_.ToMicroseconds() + + kAlpha * rtt.ToMicroseconds()); |