summaryrefslogtreecommitdiff
path: root/net-analyzer/ntopng/files/ntopng-3.8-missing-min.patch
blob: 303826a918dfe190cf3d7dc4b882567d1af2eadb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/third-party/zeromq-4.1.3/src/tcp_connecter.cpp
+++ b/third-party/zeromq-4.1.3/src/tcp_connecter.cpp
@@ -31,6 +31,7 @@
 
 #include <new>
 #include <string>
+#include <algorithm>
 
 #include "tcp_connecter.hpp"
 #include "stream_engine.hpp"
@@ -207,7 +208,7 @@
         options.reconnect_ivl_max > options.reconnect_ivl)
         //  Calculate the next interval
         current_reconnect_ivl =
-            min (current_reconnect_ivl * 2, options.reconnect_ivl_max);
+	  std::min(current_reconnect_ivl * 2, options.reconnect_ivl_max);
     return interval;
 }