From 590d592f87c3fd24eb3a7dc6135acf5153b81bc8 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 9 Dec 1998 18:03:24 +0000 Subject: [PATCH] * sim-arange.c: Include libiberty.h, and stdlib.h if present. --- sim/common/ChangeLog | 2 ++ sim/common/sim-arange.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 5cd97db4f4..0033c8d133 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,7 @@ 1998-12-09 Doug Evans + * sim-arange.c: Include libiberty.h, and stdlib.h if present. + * dv-sockser.c: Include unistd.h if present. (dv_sockser_init): Add missing arg to call to sim_io_eprintf. diff --git a/sim/common/sim-arange.c b/sim/common/sim-arange.c index 43c5789ae6..1238eecc96 100644 --- a/sim/common/sim-arange.c +++ b/sim/common/sim-arange.c @@ -21,9 +21,14 @@ with this program; if not, write to the Free Software Foundation, Inc., /* Tell sim-arange.h it's us. */ #define SIM_ARANGE_C +#include "libiberty.h" #include "sim-basics.h" #include "sim-assert.h" +#ifdef HAVE_STDLIB_H +#include +#endif + #define DEFINE_INLINE_P (! defined (SIM_ARANGE_C_INCLUDED)) #define DEFINE_NON_INLINE_P defined (SIM_ARANGE_C_INCLUDED)