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
 {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to