From: Nick Clifton Date: Mon, 24 Oct 2011 11:23:40 +0000 (+0000) Subject: PR binutils/13292 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f11632056dff3b2b0fee17d534afa5e4636c2a1e;p=binutils-gdb.git PR binutils/13292 * bfd-in.h: Include rather than forward defining struct stat. * bfd-in2.h: Regenerate. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 39f1a2a98a1..d1f7d1985c1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2011-10-24 Pau Garcia i Quiles + + PR binutils/13292 + * bfd-in.h: Include rather than forward defining + struct stat. + * bfd-in2.h: Regenerate. + 2011-10-21 H.J. Lu PR ld/13302 diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index a477b49e393..40ed7866288 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -31,6 +31,8 @@ extern "C" { #include "ansidecl.h" #include "symcat.h" +#include + #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE) #ifndef SABER /* This hack is to avoid a problem with some strict ANSI C preprocessors. @@ -300,9 +302,6 @@ typedef struct bfd_section *sec_ptr; && bfd_is_abs_section ((sec)->output_section) \ && (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 --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 22fcdf65bd8..91f3531a628 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -38,6 +38,8 @@ extern "C" { #include "ansidecl.h" #include "symcat.h" +#include + #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE) #ifndef SABER /* This hack is to avoid a problem with some strict ANSI C preprocessors. @@ -307,9 +309,6 @@ typedef struct bfd_section *sec_ptr; && bfd_is_abs_section ((sec)->output_section) \ && (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 {