From b143e2d506bee1020752597f979d5af174edc36d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 11 Dec 2020 13:27:45 +0000 Subject: 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. --- binutils/objcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binutils/objcopy.c') diff --git a/binutils/objcopy.c b/binutils/objcopy.c index 06ecf3e..0ea3ea1 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -3745,7 +3745,7 @@ copy_file (const char *input_filename, const char *output_filename, int ofd, /* To allow us to do "strip *" without dying on the first non-object file, failures are nonfatal. */ ibfd = bfd_openr (input_filename, input_target); - if (ibfd == NULL || fstat (fileno (ibfd->iostream), in_stat) != 0) + if (ibfd == NULL || fstat (fileno ((FILE *) ibfd->iostream), in_stat) != 0) { bfd_nonfatal_message (input_filename, NULL, NULL, NULL); status = 1; -- cgit v1.1