aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDavid Chisnall <theraven@FreeBSD.org>2013-01-23 08:54:34 +0000
committerDavid Chisnall <theraven@FreeBSD.org>2013-01-23 08:54:34 +0000
commit009f7b425d0046197035b97e71153908303619c2 (patch)
treeba30f01ee271209b1bbcb2ae95d2eab02c0c22ca /usr.bin
parent8f197f151cd357cf802bee6ab19fc24ac8d15fcc (diff)
Explicitly include headers that are implicitly included by libstdc++. Fixes
building dtc with libc++.
Notes
Notes: svn path=/head/; revision=245839
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/dtc/checking.cc1
-rw-r--r--usr.bin/dtc/dtb.cc4
-rw-r--r--usr.bin/dtc/dtc.cc8
-rw-r--r--usr.bin/dtc/fdt.cc6
-rw-r--r--usr.bin/dtc/input_buffer.cc7
-rw-r--r--usr.bin/dtc/string.cc2
6 files changed, 24 insertions, 4 deletions
diff --git a/usr.bin/dtc/checking.cc b/usr.bin/dtc/checking.cc
index aff375225072..5462a494f888 100644
--- a/usr.bin/dtc/checking.cc
+++ b/usr.bin/dtc/checking.cc
@@ -31,6 +31,7 @@
*/
#include "checking.hh"
+#include <stdio.h>
namespace dtc
{
diff --git a/usr.bin/dtc/dtb.cc b/usr.bin/dtc/dtb.cc
index 82ccc4778436..986ef6f717b5 100644
--- a/usr.bin/dtc/dtb.cc
+++ b/usr.bin/dtc/dtb.cc
@@ -31,7 +31,11 @@
*/
#include "dtb.hh"
+#include <sys/types.h>
#include <inttypes.h>
+#include <stdio.h>
+#include <unistd.h>
+
namespace dtc
{
diff --git a/usr.bin/dtc/dtc.cc b/usr.bin/dtc/dtc.cc
index bf52813bf49b..cffb3eb3cc32 100644
--- a/usr.bin/dtc/dtc.cc
+++ b/usr.bin/dtc/dtc.cc
@@ -31,10 +31,14 @@
*/
#include <sys/resource.h>
-#include <time.h>
-#include <stdio.h>
#include <fcntl.h>
#include <libgen.h>
+#include <limits.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <time.h>
+#include <unistd.h>
+
#include "fdt.hh"
#include "checking.hh"
diff --git a/usr.bin/dtc/fdt.cc b/usr.bin/dtc/fdt.cc
index 70b7d451129f..b6e7d56d7e44 100644
--- a/usr.bin/dtc/fdt.cc
+++ b/usr.bin/dtc/fdt.cc
@@ -33,9 +33,13 @@
#include "fdt.hh"
#include <algorithm>
-#include <inttypes.h>
+#include <ctype.h>
#include <fcntl.h>
+#include <inttypes.h>
#include <libgen.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
#include "dtb.hh"
namespace dtc
diff --git a/usr.bin/dtc/input_buffer.cc b/usr.bin/dtc/input_buffer.cc
index cd08dd394ab6..2a483f328646 100644
--- a/usr.bin/dtc/input_buffer.cc
+++ b/usr.bin/dtc/input_buffer.cc
@@ -31,8 +31,13 @@
*/
#include "input_buffer.hh"
-#include <string.h>
+#include <ctype.h>
+#include <limits.h>
#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
#include <sys/stat.h>
#include <sys/mman.h>
diff --git a/usr.bin/dtc/string.cc b/usr.bin/dtc/string.cc
index 2f617cc8e9e8..283bafab2f69 100644
--- a/usr.bin/dtc/string.cc
+++ b/usr.bin/dtc/string.cc
@@ -31,6 +31,8 @@
*/
#include "string.hh"
+#include <ctype.h>
+#include <stdio.h>
namespace
{