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/arsup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binutils/arsup.c') 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 -- cgit v1.1