From 9f6b52eac2221f398896b318bd46824ee54623e0 Mon Sep 17 00:00:00 2001 From: Daniel Larimer Date: Fri, 23 May 2014 21:54:59 -0400 Subject: [PATCH] fix build on OS X --- src/network/rate_limiting.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/network/rate_limiting.cpp b/src/network/rate_limiting.cpp index 0055abb..59db1a5 100644 --- a/src/network/rate_limiting.cpp +++ b/src/network/rate_limiting.cpp @@ -1,6 +1,8 @@ #include #include #include +#include +#include #include #include #include @@ -262,7 +264,7 @@ namespace fc while (!operations_sorted_by_length.empty()) { uint32_t bytes_permitted_for_this_operation = bytes_remaining_to_allocate / operations_sorted_by_length.size(); - uint32_t bytes_allocated_for_this_operation = std::min(operations_sorted_by_length.back()->length, bytes_permitted_for_this_operation); + uint32_t bytes_allocated_for_this_operation = std::min(operations_sorted_by_length.back()->length, bytes_permitted_for_this_operation); operations_sorted_by_length.back()->permitted_length = bytes_allocated_for_this_operation; bytes_remaining_to_allocate -= bytes_allocated_for_this_operation; operations_sorted_by_length.pop_back();