tags 424601 + patch
kthxbye

The attached patch fixes the FTBFS by including <algorithm> and
prefixing "min" with "std::".

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
Screw you, AACS LA: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
diff -ur anon-proxy.old/CAInfoService.cpp anon-proxy-00.02.39/CAInfoService.cpp
--- anon-proxy.old/CAInfoService.cpp	2007-05-23 18:33:54.000000000 +0000
+++ anon-proxy-00.02.39/CAInfoService.cpp	2007-05-23 18:37:49.000000000 +0000
@@ -33,6 +33,9 @@
 #include "CASocketAddrINet.hpp"
 #include "CAUtil.hpp"
 #include "xml/DOM_Output.hpp"
+
+#include <algorithm>
+
 extern CACmdLnOptions options;
 
 
@@ -157,7 +160,7 @@
 				else
 					{
 						double dTmp=(double)diffTraffic/(double)avgTraffic;
-						tmpTraffic=min(SINT32(50.*dTmp),100);
+						tmpTraffic=std::min(SINT32(50.*dTmp),100);
 					}
 				set64(m_lastMixedPackets,tmpPackets);
 			

Attachment: signature.asc
Description: Digital signature

Reply via email to