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
This commit is contained in:
John Baldwin 2022-06-09 10:20:03 -07:00
parent 3491ed652e
commit 1c44d2bf86
2 changed files with 2 additions and 1 deletions

View file

@ -38,6 +38,7 @@
#include "dtb.hh"
#include <algorithm>
#include <limits>
#include <sstream>
#include <ctype.h>

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>