diff options
author | Junhao Li <jl2922@cornell.edu> | 2018-08-08 14:31:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 14:31:52 -0700 |
commit | b9decfb35d95aeee9245c4d2b197bb5b8bcb2133 (patch) | |
tree | bad36502cab1ea6ac695e5f24faee227cdc37ebb /src/cpp/server/load_reporter | |
parent | e916e79cb88b007559e079a8cac2250105a76954 (diff) |
include cmath to fix gcc8 compilation error
This fix resolves the following compilation error on GCC8.1.1:
ERROR: /home/junhao/tools/grpc/BUILD:1350:1: C++ compilation of rule '//:grpcpp_server_load_reporting' failed (Exit 1)
src/cpp/server/load_reporter/util.cc:31:12: error: no member named 'isnormal' in namespace 'std'
if (std::isnormal(cost_value)) {
~~~~~^
1 error generated.
Diffstat (limited to 'src/cpp/server/load_reporter')
-rw-r--r-- | src/cpp/server/load_reporter/util.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpp/server/load_reporter/util.cc b/src/cpp/server/load_reporter/util.cc index a2f2f11e70..0f8fa764ad 100644 --- a/src/cpp/server/load_reporter/util.cc +++ b/src/cpp/server/load_reporter/util.cc @@ -21,6 +21,7 @@ #include <grpcpp/ext/server_load_reporting.h> #include <grpc/support/log.h> +#include <cmath> namespace grpc { namespace load_reporter { |