aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.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/ar.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/ar.c')
-rw-r--r--binutils/ar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 6598dd9..8329223 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -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