diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 653a2fb639..53dde49768 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,14 @@ +2019-03-28 Stafford Horne + + * sim-options.c: Include "config.h". + Include . + * sim-watch.c: Include "config.h". + Include . + * hw-device.c: Include . + * hw-events.c: Include . + * hw-handles.c: Include . + * sim-fpu.c: Include . + 2019-03-28 Stafford Horne * Make-common.in (sim-arange_h): Remove sim-arange.c diff --git a/sim/common/hw-device.c b/sim/common/hw-device.c index ee1bfad893..458ee22caa 100644 --- a/sim/common/hw-device.c +++ b/sim/common/hw-device.c @@ -27,6 +27,10 @@ #include #endif +#if HAVE_STRING_H +#include +#endif + /* Address methods */ const hw_unit * diff --git a/sim/common/hw-events.c b/sim/common/hw-events.c index e6523365bd..f78be2aa46 100644 --- a/sim/common/hw-events.c +++ b/sim/common/hw-events.c @@ -23,6 +23,9 @@ along with this program. If not, see . */ #include "sim-events.h" +#if HAVE_STRING_H +#include +#endif /* The hw-events object is implemented using sim-events */ diff --git a/sim/common/hw-handles.c b/sim/common/hw-handles.c index 2848b9bcb5..d05656235d 100644 --- a/sim/common/hw-handles.c +++ b/sim/common/hw-handles.c @@ -23,6 +23,9 @@ #include "hw-main.h" #include "hw-base.h" +#if HAVE_STDLIB_H +#include +#endif struct hw_handle_mapping { diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c index 81cdbf5061..74f5fd488c 100644 --- a/sim/common/sim-fpu.c +++ b/sim/common/sim-fpu.c @@ -41,6 +41,9 @@ along with this program. If not, see . */ #include "sim-io.h" #include "sim-assert.h" +#ifdef HAVE_STDLIB_H +#include +#endif /* Debugging support. If digits is -1, then print all digits. */ diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index 69aebfe3d0..dc4a71203a 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -17,6 +17,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include "config.h" #include "sim-main.h" #ifdef HAVE_STRING_H #include @@ -29,6 +30,7 @@ along with this program. If not, see . */ #include #endif #include +#include #include "libiberty.h" #include "sim-options.h" #include "sim-io.h" diff --git a/sim/common/sim-watch.c b/sim/common/sim-watch.c index 6c357f8267..174336b377 100644 --- a/sim/common/sim-watch.c +++ b/sim/common/sim-watch.c @@ -17,12 +17,14 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include "config.h" #include "sim-main.h" #include "sim-options.h" #include "sim-assert.h" #include +#include #ifdef HAVE_STRING_H #include