forked from Imagelibrary/binutils-gdb
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:
committed by
Nick Clifton
parent
9cd7a95a2b
commit
b143e2d506
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user