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 "dtb.hh"
#include <algorithm> #include <algorithm>
#include <limits>
#include <sstream> #include <sstream>
#include <ctype.h> #include <ctype.h>

View File

@ -35,7 +35,6 @@
#include "input_buffer.hh" #include "input_buffer.hh"
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <limits.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
@ -44,6 +43,7 @@
#ifndef NDEBUG #ifndef NDEBUG
#include <iostream> #include <iostream>
#endif #endif
#include <limits>
#include <sys/stat.h> #include <sys/stat.h>