From 3c865fca872570ba07c4a16fb262e0487b66bf0a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 11 Mar 2014 15:42:46 +1030 Subject: [PATCH] intptr_t type definition needed coffcode.h uses an intptr_t cast inside an #ifdef RS6000COFF_C, so ensure that intptr_t is defined. We don't see this when cross-compiling from linux due to intptr_t being provided by unistd.h. PR 16686 * coff-rs6000.c: Include stdint.h. * coff64-rs6000.c: Likewise. --- bfd/ChangeLog | 6 ++++++ bfd/coff-rs6000.c | 1 + bfd/coff64-rs6000.c | 1 + 3 files changed, 8 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 04577b4fdc6..fd3135a886e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2014-03-11 Alan Modra + + PR 16686 + * coff-rs6000.c: Include stdint.h. + * coff64-rs6000.c: Likewise. + 2014-03-10 Tristan Gingold * ticoff.h: Removed. diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index 1f976d9e2ca..06ee721477b 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -114,6 +114,7 @@ extern int rs6000coff_core_file_failing_signal (bfd *abfd); #define bfd_pe_print_pdata NULL #endif +#include #include "coffcode.h" /* The main body of code is in coffcode.h. */ diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c index 0e0f0d47d11..4bc7ea8e872 100644 --- a/bfd/coff64-rs6000.c +++ b/bfd/coff64-rs6000.c @@ -277,6 +277,7 @@ extern int rs6000coff_core_file_failing_signal #define bfd_pe_print_pdata NULL #endif +#include #include "coffcode.h" /* For XCOFF64, the effective width of symndx changes depending on -- 2.30.2