PATCH COMMITTED: Add some #include statements to gold

Ian Lance Taylor iant@google.com
Sat Mar 22 18:52:00 GMT 2008


I added some #include statements to make sure that types are defined.
Tested by running the testsuite.

Ian


2008-03-22  Ian Lance Taylor  <iant@google.com>

	* gold.h: Include <cstddef> and <sys/types.h>
	* options.h: Include <cstring>.


Index: gold.h
===================================================================
RCS file: /cvs/src/src/gold/gold.h,v
retrieving revision 1.23
diff -u -r1.23 gold.h
--- gold.h	13 Mar 2008 21:04:21 -0000	1.23
+++ gold.h	22 Mar 2008 18:41:58 -0000
@@ -26,6 +26,9 @@
 #include "config.h"
 #include "ansidecl.h"
 
+#include <cstddef>
+#include <sys/types.h>
+
 #ifdef ENABLE_NLS
 # include <libintl.h>
 # define _(String) gettext (String)
Index: options.h
===================================================================
RCS file: /cvs/src/src/gold/options.h,v
retrieving revision 1.63
diff -u -r1.63 options.h
--- options.h	20 Mar 2008 05:22:37 -0000	1.63
+++ options.h	22 Mar 2008 18:41:58 -0000
@@ -37,6 +37,7 @@
 #define GOLD_OPTIONS_H
 
 #include <cstdlib>
+#include <cstring>
 #include <list>
 #include <string>
 #include <vector>



More information about the Binutils mailing list