binutils/binutils: do not fwd declare struct stat (2.22).
For canadian cross to host i686-mingw32 fwd declaring
struct stat is not possible.
Instead #include <sys/stat.h>
Signed-off-by: Titus von Boxberg <titus@v9g.de>
Message-Id: <417a15d4277913841ddd.1353100974@tschetwerikow.boxberg.lan>
Patchwork-Id: 199733
1 diff -ur binutils-2.22.org/bfd/bfd-in2.h binutils-2.22/bfd/bfd-in2.h
2 --- binutils-2.22.org/bfd/bfd-in2.h 2011-09-16 03:15:18.000000000 +0200
3 +++ binutils-2.22/bfd/bfd-in2.h 2012-11-03 18:25:20.365668349 +0100
14 && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
15 && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
17 -/* Forward define. */
20 typedef enum bfd_print_symbol
22 diff -ur binutils-2.22.org/bfd/bfd-in.h binutils-2.22/bfd/bfd-in.h
23 --- binutils-2.22.org/bfd/bfd-in.h 2011-09-16 03:15:18.000000000 +0200
24 +++ binutils-2.22/bfd/bfd-in.h 2012-11-03 18:24:43.397783645 +0100
26 #ifndef __BFD_H_SEEN__
27 #define __BFD_H_SEEN__
29 +#include <sys/stat.h>
35 && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
36 && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
38 -/* Forward define. */
41 typedef enum bfd_print_symbol