File: fix-gcc11-FTBFS.patch

package info (click to toggle)
xenium 0.0.2%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,152 kB
  • sloc: cpp: 12,299; makefile: 20
file content (30 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Include limits to fix GCC-11 FTBFS
Author: Nilesh Patra <nilesh@debian.org>
Last-Update: 2021-10-24
--- a/benchmarks/hash_map_benchmark.cpp
+++ b/benchmarks/hash_map_benchmark.cpp
@@ -5,6 +5,7 @@
 
 #include <iostream>
 #include <vector>
+#include <limits>
 
 using config_t = tao::config::value;
 
@@ -214,4 +215,4 @@
 
 void register_hash_map_benchmark(registered_benchmarks& benchmarks) {
   benchmarks.emplace("hash_map", benchmark_variations());
-}
\ No newline at end of file
+}
--- a/xenium/reclamation/impl/stamp_it.hpp
+++ b/xenium/reclamation/impl/stamp_it.hpp
@@ -13,6 +13,7 @@
 #include <xenium/reclamation/detail/thread_block_list.hpp>
 
 #include <algorithm>
+#include <limits>
 
 #ifdef _MSC_VER
 #pragma warning(push)