Date: Thu, 9 Jun 2022 17:20:44 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 1c44d2bf8683 - main - usr.bin/dtc: Include <limits> for std::numeric_limits<>. Message-ID: <202206091720.259HKiHd060952@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206091720.259HKiHd060952>