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 <[email protected]>
Obtained from:	CheriBSD

(cherry picked from commit 1c44d2bf86)
This commit is contained in:
John Baldwin committed 2022-07-13 11:45:51 -07:00
1 parent 643b3b382d
commit fd01963cc3
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -38,6 +38,7 @@
#include "dtb.hh"
#include <algorithm>
#include <limits>
#include <sstream>
#include <ctype.h>
+1 -1
View File
@@ -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>