This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2 of 2] patches/binutils/2.22: do not fwd declare struct stat


# HG changeset patch
# User Titus von Boxberg <titus@v9g.de>
# Date 1352220159 -3600
# Node ID ba9b356542d2d0f702d7c719cc09799579994dba
# Parent  51587db99510a9ec08f831b2ed596017efb253a5
patches/binutils/2.22: do not fwd declare struct stat.

For canadian cross to host i686-mingw32 fwd declaring
struct stat is not possible.
Instead #include <sys/stat.h>

diff -r 51587db99510 -r ba9b356542d2 patches/binutils/2.22/500-fix-struct-stat.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/binutils/2.22/500-fix-struct-stat.patch	Tue Nov 06 17:42:39 2012 +0100
@@ -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
+ {

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]