aboutsummaryrefslogtreecommitdiff
path: root/binutils/arsup.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/arsup.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/arsup.c')
-rw-r--r--binutils/arsup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/arsup.c b/binutils/arsup.c
index 8b4437f..dad4174 100644
--- a/binutils/arsup.c
+++ b/binutils/arsup.c
@@ -355,7 +355,7 @@ ar_save (void)
#if !defined (_WIN32) || defined (__CYGWIN32__)
/* It's OK to fail; at worst it will result in SMART_RENAME using a slow
copy fallback to write the output. */
- ofd = dup (fileno (obfd->iostream));
+ ofd = dup (fileno ((FILE *) obfd->iostream));
if (lstat (real_name, &target_stat) != 0)
skip_stat = TRUE;
#endif