Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 1 | From 7bca122e15bbe98c7b8da851ef3e1cf9a714afd9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 26 Feb 2021 23:31:15 -0800 |
| 4 | Subject: [PATCH] include limits.h |
| 5 | |
| 6 | Fixes build with gcc11 |
| 7 | backend_selector.cc:61:35: error: 'numeric_limits' is not a member of 'std' |
| 8 | |
| 9 | Upstream-Status: Submitted [https://github.com/isc-projects/kea/pull/120] |
| 10 | Signed-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 { |