diff options
author | Titus von Boxberg <titus@v9g.de> | 2012-11-06 17:42:39 +0100 |
---|---|---|
committer | Titus von Boxberg <titus@v9g.de> | 2012-11-06 17:42:39 +0100 |
commit | 062547b04d929d0f7e40ace215495e56fd5fd806 (patch) | |
tree | 3d258dcf488912542dc2c69f289fd43c1b982986 /patches | |
parent | 0be070e5b7f435ed13494560016061315a992516 (diff) | |
download | crosstool-ng-062547b04d929d0f7e40ace215495e56fd5fd806.tar.gz crosstool-ng-062547b04d929d0f7e40ace215495e56fd5fd806.tar.bz2 crosstool-ng-062547b04d929d0f7e40ace215495e56fd5fd806.zip |
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
Diffstat (limited to 'patches')
-rw-r--r-- | patches/binutils/2.22/500-fix-struct-stat.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/patches/binutils/2.22/500-fix-struct-stat.patch b/patches/binutils/2.22/500-fix-struct-stat.patch new file mode 100644 index 00000000..5572abf4 --- /dev/null +++ b/patches/binutils/2.22/500-fix-struct-stat.patch @@ -0,0 +1,42 @@ +diff -ur binutils-2.22.org/bfd/bfd-in2.h binutils-2.22/bfd/bfd-in2.h +--- binutils-2.22.org/bfd/bfd-in2.h 2011-09-16 03:15:18.000000000 +0200 ++++ binutils-2.22/bfd/bfd-in2.h 2012-11-03 18:25:20.365668349 +0100 +@@ -32,6 +32,8 @@ + #ifndef __BFD_H_SEEN__ + #define __BFD_H_SEEN__ + ++#include <sys/stat.h> ++ + #ifdef __cplusplus + extern "C" { + #endif +@@ -308,8 +310,6 @@ + && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \ + && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS) + +-/* Forward define. */ +-struct stat; + + typedef enum bfd_print_symbol + { +diff -ur binutils-2.22.org/bfd/bfd-in.h binutils-2.22/bfd/bfd-in.h +--- binutils-2.22.org/bfd/bfd-in.h 2011-09-16 03:15:18.000000000 +0200 ++++ binutils-2.22/bfd/bfd-in.h 2012-11-03 18:24:43.397783645 +0100 +@@ -25,6 +25,8 @@ + #ifndef __BFD_H_SEEN__ + #define __BFD_H_SEEN__ + ++#include <sys/stat.h> ++ + #ifdef __cplusplus + extern "C" { + #endif +@@ -301,8 +303,6 @@ + && (sec)->sec_info_type != ELF_INFO_TYPE_MERGE \ + && (sec)->sec_info_type != ELF_INFO_TYPE_JUST_SYMS) + +-/* Forward define. */ +-struct stat; + + typedef enum bfd_print_symbol + { |