aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
Diffstat (limited to 'sim')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/run.c2
-rw-r--r--sim/d10v/ChangeLog4
-rw-r--r--sim/d10v/simops.c3
4 files changed, 12 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index ac0c4df..1e49576 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-13 Andrew Cagney <cagney@redhat.com>
+
+ * run.c (main): Remove SIM_HAVE_ENVIRONMENT from #endif.
+
2002-11-06 Richard Sandiford <rsandifo@redhat.com>
* Make-common.in (SIM_EXTRA_DISTCLEAN): New macro.
diff --git a/sim/common/run.c b/sim/common/run.c
index d8c86cd..ca3194b 100644
--- a/sim/common/run.c
+++ b/sim/common/run.c
@@ -156,7 +156,7 @@ main (ac, av)
target. */
operating_p = 1;
break;
-#endif SIM_HAVE_ENVIRONMENT
+#endif
#ifdef SIM_HAVE_PROFILE
case 'p':
sim_set_profile (atoi (optarg));
diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog
index 320eb98..9c42d35 100644
--- a/sim/d10v/ChangeLog
+++ b/sim/d10v/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-13 Andrew Cagney <cagney@redhat.com>
+
+ * simops.c: Include <string.h>.
+
2002-06-17 Andrew Cagney <cagney@redhat.com>
* d10v_sim.h (SET_PSW_BIT): Add cast to avoid inverting an enum.
diff --git a/sim/d10v/simops.c b/sim/d10v/simops.c
index 1c0ecfe..fbffa4d 100644
--- a/sim/d10v/simops.c
+++ b/sim/d10v/simops.c
@@ -7,6 +7,9 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
#include "d10v_sim.h"
#include "simops.h"