aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/system.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f11527f..3c6ba19 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-12-13 Jack Howarth <howarth@bromo.med.uc.edu>
+ Joseph Myers <joseph@codesourcery.com>
+
+ PR bootstrap/46650
+ * system.h: Include cstring for cxx bootstrap.
+
2010-12-13 Jakub Jelinek <jakub@redhat.com>
PR lto/46879
diff --git a/gcc/system.h b/gcc/system.h
index 3dc3b4e..081e076 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -190,6 +190,10 @@ extern int fprintf_unlocked (FILE *, const char *, ...);
extern int errno;
#endif
+#ifdef __cplusplus
+# include <cstring>
+#endif
+
/* Some of glibc's string inlines cause warnings. Plus we'd rather
rely on (and therefore test) GCC's string builtins. */
#define __NO_STRING_INLINES