Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2013 08:54:34 +0000 (UTC)
From:      David Chisnall <theraven@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r245839 - head/usr.bin/dtc
Message-ID:  <201301230854.r0N8sYuf027478@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: theraven
Date: Wed Jan 23 08:54:34 2013
New Revision: 245839
URL: http://svnweb.freebsd.org/changeset/base/245839

Log:
  Explicitly include headers that are implicitly included by libstdc++.  Fixes
  building dtc with libc++.

Modified:
  head/usr.bin/dtc/checking.cc
  head/usr.bin/dtc/dtb.cc
  head/usr.bin/dtc/dtc.cc
  head/usr.bin/dtc/fdt.cc
  head/usr.bin/dtc/input_buffer.cc
  head/usr.bin/dtc/string.cc

Modified: head/usr.bin/dtc/checking.cc
==============================================================================
--- head/usr.bin/dtc/checking.cc	Wed Jan 23 07:27:38 2013	(r245838)
+++ head/usr.bin/dtc/checking.cc	Wed Jan 23 08:54:34 2013	(r245839)
@@ -31,6 +31,7 @@
  */
 
 #include "checking.hh"
+#include <stdio.h>
 
 namespace dtc
 {

Modified: head/usr.bin/dtc/dtb.cc
==============================================================================
--- head/usr.bin/dtc/dtb.cc	Wed Jan 23 07:27:38 2013	(r245838)
+++ head/usr.bin/dtc/dtb.cc	Wed Jan 23 08:54:34 2013	(r245839)
@@ -31,7 +31,11 @@
  */
 
 #include "dtb.hh"
+#include <sys/types.h>
 #include <inttypes.h>
+#include <stdio.h>
+#include <unistd.h>
+
 
 namespace dtc
 {

Modified: head/usr.bin/dtc/dtc.cc
==============================================================================
--- head/usr.bin/dtc/dtc.cc	Wed Jan 23 07:27:38 2013	(r245838)
+++ head/usr.bin/dtc/dtc.cc	Wed Jan 23 08:54:34 2013	(r245839)
@@ -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"

Modified: head/usr.bin/dtc/fdt.cc
==============================================================================
--- head/usr.bin/dtc/fdt.cc	Wed Jan 23 07:27:38 2013	(r245838)
+++ head/usr.bin/dtc/fdt.cc	Wed Jan 23 08:54:34 2013	(r245839)
@@ -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

Modified: head/usr.bin/dtc/input_buffer.cc
==============================================================================
--- head/usr.bin/dtc/input_buffer.cc	Wed Jan 23 07:27:38 2013	(r245838)
+++ head/usr.bin/dtc/input_buffer.cc	Wed Jan 23 08:54:34 2013	(r245839)
@@ -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>

Modified: head/usr.bin/dtc/string.cc
==============================================================================
--- head/usr.bin/dtc/string.cc	Wed Jan 23 07:27:38 2013	(r245838)
+++ head/usr.bin/dtc/string.cc	Wed Jan 23 08:54:34 2013	(r245839)
@@ -31,6 +31,8 @@
  */
 
 #include "string.hh"
+#include <ctype.h>
+#include <stdio.h>
 
 namespace
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301230854.r0N8sYuf027478>