X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bd76919be169a04d524d59aaad0698411793a410..95fcf20e6ef0f0cb449faddd00b5500bede028af:/examples/s4u/app-bittorrent/s4u-tracker.cpp diff --git a/examples/s4u/app-bittorrent/s4u-tracker.cpp b/examples/s4u/app-bittorrent/s4u-tracker.cpp index d45095179c..129667980e 100644 --- a/examples/s4u/app-bittorrent/s4u-tracker.cpp +++ b/examples/s4u/app-bittorrent/s4u-tracker.cpp @@ -5,6 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "s4u-tracker.hpp" +#include #include XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_bt_tracker, "Messages specific for the tracker"); @@ -48,7 +49,7 @@ void Tracker::operator()() TrackerAnswer* ta = new TrackerAnswer(TRACKER_QUERY_INTERVAL); std::set::iterator next_peer; int nb_known_peers = known_peers.size(); - int max_tries = MIN(MAXIMUM_PEERS, nb_known_peers); + int max_tries = std::min(MAXIMUM_PEERS, nb_known_peers); int tried = 0; while (tried < max_tries) { do {