aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-arange.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-12-09 18:03:24 +0000
committerDoug Evans <dje@google.com>1998-12-09 18:03:24 +0000
commit590d592f87c3fd24eb3a7dc6135acf5153b81bc8 (patch)
treed0dbd9ca959686c9d35ef33e80b2c3b9dbfbb795 /sim/common/sim-arange.c
parent2a939996f6e4c7e55e255d2ae56cc734fbf7d5e4 (diff)
downloadgdb-590d592f87c3fd24eb3a7dc6135acf5153b81bc8.zip
gdb-590d592f87c3fd24eb3a7dc6135acf5153b81bc8.tar.gz
gdb-590d592f87c3fd24eb3a7dc6135acf5153b81bc8.tar.bz2
* sim-arange.c: Include libiberty.h, and stdlib.h if present.
Diffstat (limited to 'sim/common/sim-arange.c')
-rw-r--r--sim/common/sim-arange.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sim/common/sim-arange.c b/sim/common/sim-arange.c
index 43c5789..1238eec 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 <stdlib.h>
+#endif
+
#define DEFINE_INLINE_P (! defined (SIM_ARANGE_C_INCLUDED))
#define DEFINE_NON_INLINE_P defined (SIM_ARANGE_C_INCLUDED)