From 3b6f4dfeccdcbdf35082034992fe069c0a326a5e Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 1 Mar 2013 11:25:48 +1100 Subject: Fix errors building on CentOS. --- rld-rap.cpp | 8 +++++--- rtems-rapper.cpp | 1 + rtems-utils.h | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/rld-rap.cpp b/rld-rap.cpp index 175376e..b198017 100644 --- a/rld-rap.cpp +++ b/rld-rap.cpp @@ -27,6 +27,8 @@ #include "config.h" #endif +#include + #include #include #include @@ -821,7 +823,7 @@ namespace rld object::get_relocations (int sec) const { if ((sec < 0) || (sec >= rap_secs)) - throw rld::error ("Invalid section index '" + rld::to_string (index), + throw rld::error ("Invalid section index '" + rld::to_string (sec), "rap::relocations"); return secs[sec].relocs.size (); } @@ -1354,7 +1356,7 @@ namespace rld image::get_relocations (int sec) const { if ((sec < 0) || (sec >= rap_secs)) - throw rld::error ("Invalid section index '" + rld::to_string (index), + throw rld::error ("Invalid section index '" + rld::to_string (sec), "rap::image::relocations"); uint32_t relocs = 0; @@ -1407,7 +1409,7 @@ namespace rld image::section_size (sections sec) const { if ((sec < 0) || (sec >= rap_secs)) - throw rld::error ("Invalid section index '" + rld::to_string (index), + throw rld::error ("Invalid section index '" + rld::to_string (sec), "rap::image::section_size"); return sec_size[sec]; } diff --git a/rtems-rapper.cpp b/rtems-rapper.cpp index d643361..a0867f6 100644 --- a/rtems-rapper.cpp +++ b/rtems-rapper.cpp @@ -26,6 +26,7 @@ #include "config.h" #endif +#include #include #include #include diff --git a/rtems-utils.h b/rtems-utils.h index e41d7c7..9918570 100644 --- a/rtems-utils.h +++ b/rtems-utils.h @@ -25,6 +25,8 @@ #if !defined (_MEMORY_DUMP_H_) #define _MEMORY_DUMP_H_ +#include + namespace rtems { namespace utils -- cgit v1.2.3