Fixed 'prometheus-cpp' compilation due to missing include #3714

pull/3715/head
Javier Jaramago Fernández 4 years ago
parent e7abc2fd3c
commit 043dfc9775

1
deps/Makefile vendored

@ -225,6 +225,7 @@ prometheus-cpp/prometheus-cpp/lib/libprometheus-cpp-core.a:
cd prometheus-cpp && tar --strip-components=1 -zxf civetweb-v1.11.tar.gz -C prometheus-cpp/3rdparty/civetweb
cd prometheus-cpp/prometheus-cpp && patch -p1 < ../serial_exposer.patch
cd prometheus-cpp/prometheus-cpp && patch -p0 < ../registry_counters_reset.patch
cd prometheus-cpp/prometheus-cpp && patch -p0 < ../include_limits.patch
cd prometheus-cpp/prometheus-cpp && cmake . -DBUILD_SHARED_LIBS=OFF -DENABLE_TESTING=OFF -DENABLE_PUSH=OFF
cd prometheus-cpp/prometheus-cpp && CC=${CC} CXX=${CXX} ${MAKE}

@ -0,0 +1,12 @@
diff --git core/src/histogram.cc core/src/histogram.cc
index 8023529..b298fd4 100644
--- core/src/histogram.cc
+++ core/src/histogram.cc
@@ -3,6 +3,7 @@
#include <algorithm>
#include <cassert>
#include <iterator>
+#include <limits>
#include <numeric>
#include <ostream>
Loading…
Cancel
Save