1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/binutils/2.22/500-fix-struct-stat.patch Thu Nov 22 19:43:26 2012 +0100
1.3 @@ -0,0 +1,42 @@
1.4 +diff -ur binutils-2.22.org/bfd/bfd-in2.h binutils-2.22/bfd/bfd-in2.h
1.5 +--- binutils-2.22.org/bfd/bfd-in2.h 2011-09-16 03:15:18.000000000 +0200
1.6 ++++ binutils-2.22/bfd/bfd-in2.h 2012-11-03 18:25:20.365668349 +0100
1.7 +@@ -32,6 +32,8 @@
1.8 + #ifndef __BFD_H_SEEN__
1.9 + #define __BFD_H_SEEN__
1.10 +
1.11 ++#include <sys/stat.h>
1.12 ++
1.13 + #ifdef __cplusplus
1.14 + extern "C" {
1.15 + #endif
1.16 +@@ -308,8 +310,6 @@
1.17 + && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
1.18 + && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
1.19 +
1.20 +-/* Forward define. */
1.21 +-struct stat;
1.22 +
1.23 + typedef enum bfd_print_symbol
1.24 + {
1.25 +diff -ur binutils-2.22.org/bfd/bfd-in.h binutils-2.22/bfd/bfd-in.h
1.26 +--- binutils-2.22.org/bfd/bfd-in.h 2011-09-16 03:15:18.000000000 +0200
1.27 ++++ binutils-2.22/bfd/bfd-in.h 2012-11-03 18:24:43.397783645 +0100
1.28 +@@ -25,6 +25,8 @@
1.29 + #ifndef __BFD_H_SEEN__
1.30 + #define __BFD_H_SEEN__
1.31 +
1.32 ++#include <sys/stat.h>
1.33 ++
1.34 + #ifdef __cplusplus
1.35 + extern "C" {
1.36 + #endif
1.37 +@@ -301,8 +303,6 @@
1.38 + && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \
1.39 + && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS)
1.40 +
1.41 +-/* Forward define. */
1.42 +-struct stat;
1.43 +
1.44 + typedef enum bfd_print_symbol
1.45 + {