summaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2011-10-24 11:23:39 +0000
committerNick Clifton <nickc@redhat.com>2011-10-24 11:23:39 +0000
commit1a6c9d598277dcad1d21eb33671cc05077e05e16 (patch)
treec4202953236f0207440c283a64a14a056d3342cc /bfd/bfd-in.h
parentd8d37bb3e381ad794ff573e36b8cbb787614c911 (diff)
downloadbinutils-redhat-1a6c9d598277dcad1d21eb33671cc05077e05e16.tar.gz
PR binutils/13292
* bfd-in.h: Include <sys/stat.h> rather than forward defining struct stat. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r--bfd/bfd-in.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index a477b49e39..40ed786628 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -31,6 +31,8 @@ extern "C" {
#include "ansidecl.h"
#include "symcat.h"
+#include <sys/stat.h>
+
#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
{