target-supports.exp (check_effective_target_fd_truncate): Include <string.h>.

* lib/target-supports.exp (check_effective_target_fd_truncate):
	Include <string.h>.

From-SVN: r215981
This commit is contained in:
Marek Polacek 2014-10-07 18:14:56 +00:00 committed by Marek Polacek
parent bcc1d055c6
commit f474b2553b
2 changed files with 6 additions and 0 deletions

View 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

View 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");