This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH COMMITTED: Add some #include statements to gold


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]