aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1995-06-29 17:15:30 +0000
committerFred Fish <fnf@specifix.com>1995-06-29 17:15:30 +0000
commit7427b968f39c875fdf3291610977fdebf1a7736d (patch)
tree28aedb9e1f4b38d93e6ddeb56e05213e594b54c4 /sim
parent8c7fd353f92fa7fdc3ad6ee31aa7639868e5ba23 (diff)
downloadfsf-binutils-gdb-7427b968f39c875fdf3291610977fdebf1a7736d.zip
fsf-binutils-gdb-7427b968f39c875fdf3291610977fdebf1a7736d.tar.gz
fsf-binutils-gdb-7427b968f39c875fdf3291610977fdebf1a7736d.tar.bz2
* interp.c: (SYS_wait): Define as SYS_wait4 if available and
SYS_wait is not already defined (SunOS 4.1.3 for example). (SYS_utime): Define as SYS_utimes if available and SYS_utime is not already defined.
Diffstat (limited to 'sim')
-rw-r--r--sim/sh/ChangeLog7
-rw-r--r--sim/sh/interp.c8
2 files changed, 15 insertions, 0 deletions
diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog
index c5e39b3..a2bf200 100644
--- a/sim/sh/ChangeLog
+++ b/sim/sh/ChangeLog
@@ -1,3 +1,10 @@
+Thu Jun 29 10:02:28 1995 Fred Fish <fnf@deneb.cygnus.com>
+
+ * interp.c: (SYS_wait): Define as SYS_wait4 if available and
+ SYS_wait is not already defined (SunOS 4.1.3 for example).
+ (SYS_utime): Define as SYS_utimes if available and
+ SYS_utime is not already defined.
+
Thu Jun 22 17:25:57 1995 Steve Chamberlain <sac@slash.cygnus.com>
* interp.c: Don't include sys/times.h or sys/param.h
diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index d35eab8..f1fa22c 100644
--- a/sim/sh/interp.c
+++ b/sim/sh/interp.c
@@ -24,6 +24,14 @@
#include "remote-sim.h"
#include <sys/syscall.h>
+#if !defined (SYS_wait) && defined (SYS_wait4)
+#define SYS_wait SYS_wait4 /* SunOS 4.1.3 for example */
+#endif
+
+#if !defined (SYS_utime) && defined (SYS_utimes)
+#define SYS_utime SYS_utimes /* SunOS 4.1.3 for example */
+#endif
+
#ifndef SIGBUS
#define SIGBUS SIGSEGV
#endif