git: 1c44d2bf8683 - main - usr.bin/dtc: Include <limits> for std::numeric_limits<>.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jun 2022 17:20:44 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1c44d2bf86834a7214e0cc7bde7c956b5b02fd21 commit 1c44d2bf86834a7214e0cc7bde7c956b5b02fd21 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-06-09 17:20:03 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-06-09 17:20:03 +0000 usr.bin/dtc: Include <limits> for std::numeric_limits<>. This is needed when building natively as a cross-tool on hosts such as Linux using more recent versions of libstdc++. Co-authored-by: Alexander Richardson <arichardson@FreeBSD.org> Obtained from: CheriBSD --- usr.bin/dtc/fdt.cc | 1 + usr.bin/dtc/input_buffer.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/dtc/fdt.cc b/usr.bin/dtc/fdt.cc index bdfd495a02d2..7f29bcea132e 100644 --- a/usr.bin/dtc/fdt.cc +++ b/usr.bin/dtc/fdt.cc @@ -38,6 +38,7 @@ #include "dtb.hh" #include <algorithm> +#include <limits> #include <sstream> #include <ctype.h> diff --git a/usr.bin/dtc/input_buffer.cc b/usr.bin/dtc/input_buffer.cc index 01ab483353c0..6487e0fa71d8 100644 --- a/usr.bin/dtc/input_buffer.cc +++ b/usr.bin/dtc/input_buffer.cc @@ -35,7 +35,6 @@ #include "input_buffer.hh" #include <ctype.h> #include <errno.h> -#include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -44,6 +43,7 @@ #ifndef NDEBUG #include <iostream> #endif +#include <limits> #include <sys/stat.h>