From 1c44d2bf86834a7214e0cc7bde7c956b5b02fd21 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 9 Jun 2022 10:20:03 -0700 Subject: [PATCH] usr.bin/dtc: Include 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 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 bdfd495a02d..7f29bcea132 100644 --- a/usr.bin/dtc/fdt.cc +++ b/usr.bin/dtc/fdt.cc @@ -38,6 +38,7 @@ #include "dtb.hh" #include +#include #include #include diff --git a/usr.bin/dtc/input_buffer.cc b/usr.bin/dtc/input_buffer.cc index 01ab483353c..6487e0fa71d 100644 --- a/usr.bin/dtc/input_buffer.cc +++ b/usr.bin/dtc/input_buffer.cc @@ -35,7 +35,6 @@ #include "input_buffer.hh" #include #include -#include #include #include #include @@ -44,6 +43,7 @@ #ifndef NDEBUG #include #endif +#include #include