aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-12-11 13:27:45 +0000
committerNick Clifton <nickc@redhat.com>2020-12-11 13:27:45 +0000
commitb143e2d506bee1020752597f979d5af174edc36d (patch)
tree114aeb82fc29dc239624f8cc4d9ef2dd41e34603 /binutils/objcopy.c
parent9cd7a95a2bb9ba9d5a6af022e5454c8ce78aee56 (diff)
downloadgdb-b143e2d506bee1020752597f979d5af174edc36d.zip
gdb-b143e2d506bee1020752597f979d5af174edc36d.tar.gz
gdb-b143e2d506bee1020752597f979d5af174edc36d.tar.bz2
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.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r--binutils/objcopy.c2
1 files changed, 1 insertions, 1 deletions
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;