aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/dtc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-06-09 17:20:03 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-06-09 17:20:03 +0000
commit1c44d2bf86834a7214e0cc7bde7c956b5b02fd21 (patch)
tree6f64ca62a1290f458e911ec3ffd79e8230864742 /usr.bin/dtc
parent3491ed652e0af484b8357ba67e45af17a0e54173 (diff)
downloadsrc-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.cc1
-rw-r--r--usr.bin/dtc/input_buffer.cc2
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>