Fix a build problem when using FreeBSD 12.

* ar.c (write_archive): Cast iostream pointer to FILE *.
	* arsup.c (ar_save): Likewise.
	* objcopy.c (copy_file): Likewise.
This commit is contained in:
Sebastian Huber
2020-12-11 13:27:45 +00:00
committed by Nick Clifton
parent 9cd7a95a2b
commit b143e2d506
4 changed files with 9 additions and 3 deletions

View File

@@ -1305,7 +1305,7 @@ write_archive (bfd *iarch)
ofd = dup (ofd);
if (iarch == NULL || iarch->iostream == NULL)
skip_stat = TRUE;
else if (ofd == -1 || fstat (fileno (iarch->iostream), &target_stat) != 0)
else if (ofd == -1 || fstat (fileno ((FILE *) iarch->iostream), &target_stat) != 0)
bfd_fatal (old_name);
#endif