summaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/target-supports.exp1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index dfc9a8bf7cd..723412c20c3 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2014-10-07 Marek Polacek <polacek@redhat.com>
+ * lib/target-supports.exp (check_effective_target_fd_truncate):
+ Include <string.h>.
+
+2014-10-07 Marek Polacek <polacek@redhat.com>
+
PR c/59717
* gcc.dg/pr59717.c: New test.
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 77e45cb5831..2144683f230 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -5284,6 +5284,7 @@ proc check_effective_target_fd_truncate { } {
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
+ #include <string.h>
int main ()
{
FILE *f = fopen ("tst.tmp", "wb");