From 1a6c9d598277dcad1d21eb33671cc05077e05e16 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 24 Oct 2011 11:23:39 +0000 Subject: [PATCH] PR binutils/13292 * bfd-in.h: Include rather than forward defining struct stat. * bfd-in2.h: Regenerate. --- bfd/ChangeLog | 7 +++++++ bfd/bfd-in.h | 5 ++--- bfd/bfd-in2.h | 5 ++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 39f1a2a98..d1f7d1985 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 a477b49e3..40ed78662 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 22fcdf65b..91f3531a6 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 { -- 2.11.4.GIT