target-supports.exp (check_effective_target_fd_truncate): Include <string.h>.
authorMarek Polacek <polacek@redhat.com>
Tue, 7 Oct 2014 18:14:56 +0000 (18:14 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 7 Oct 2014 18:14:56 +0000 (18:14 +0000)
* lib/target-supports.exp (check_effective_target_fd_truncate):
Include <string.h>.

From-SVN: r215981

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index dfc9a8bf7cd1f67ed4baf458f1a325019347aaa0..723412c20c31c5dfae90a85b775fd478a7dec6a9 100644 (file)
@@ -1,3 +1,8 @@
+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
index 77e45cb583104f3e4fa9f58eb058687d9673ba70..2144683f2309cda17317b2b9544a7433c881b3c5 100644 (file)
@@ -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");