blob: 3856b3d523394dbcc097891cb15073238c550454 [file] [log] [blame]
Andrew Geissler90fd73c2021-03-05 15:25:55 -06001From 7bca122e15bbe98c7b8da851ef3e1cf9a714afd9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 26 Feb 2021 23:31:15 -0800
4Subject: [PATCH] include limits.h
5
6Fixes build with gcc11
7backend_selector.cc:61:35: error: 'numeric_limits' is not a member of 'std'
8
9Upstream-Status: Submitted [https://github.com/isc-projects/kea/pull/120]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 src/lib/exceptions/exceptions.h | 1 +
13 1 file changed, 1 insertion(+)
14
15--- a/src/lib/database/backend_selector.cc
16+++ b/src/lib/database/backend_selector.cc
17@@ -6,7 +6,7 @@
18
19 #include <database/backend_selector.h>
20 #include <exceptions/exceptions.h>
21-#include <climits>
22+#include <limits>
23 #include <sstream>
24
25 using namespace isc::data;
26--- a/src/lib/dhcpsrv/subnet_id.h
27+++ b/src/lib/dhcpsrv/subnet_id.h
28@@ -10,6 +10,7 @@
29 #include <exceptions/exceptions.h>
30 #include <stdint.h>
31 #include <typeinfo>
32+#include <limits>
33
34 namespace isc {
35 namespace dhcp {