* sim-arange.c: Include libiberty.h, and stdlib.h if present.
authorDoug Evans <dje@google.com>
Wed, 9 Dec 1998 18:03:24 +0000 (18:03 +0000)
committerDoug Evans <dje@google.com>
Wed, 9 Dec 1998 18:03:24 +0000 (18:03 +0000)
sim/common/ChangeLog
sim/common/sim-arange.c

index 5cd97db4f40be60eb7e02a91f9bf95075c9f1241..0033c8d133350e5d4526df4ad75b1ceb32031920 100644 (file)
@@ -1,5 +1,7 @@
 1998-12-09  Doug Evans  <devans@casey.cygnus.com>
 
+       * 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.
 
index 43c5789ae6058b4bb4bbf2b3149ef2afd9f071ee..1238eecc965e929f09e71866475fcfcd9375437a 100644 (file)
@@ -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)