diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-06-09 17:20:03 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-06-09 17:20:03 +0000 |
commit | 1c44d2bf86834a7214e0cc7bde7c956b5b02fd21 (patch) | |
tree | 6f64ca62a1290f458e911ec3ffd79e8230864742 /usr.bin/dtc | |
parent | 3491ed652e0af484b8357ba67e45af17a0e54173 (diff) | |
download | src-1c44d2bf86834a7214e0cc7bde7c956b5b02fd21.tar.gz src-1c44d2bf86834a7214e0cc7bde7c956b5b02fd21.zip |
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
Diffstat (limited to 'usr.bin/dtc')
-rw-r--r-- | usr.bin/dtc/fdt.cc | 1 | ||||
-rw-r--r-- | usr.bin/dtc/input_buffer.cc | 2 |
2 files changed, 2 insertions, 1 deletions
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> |