diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-04-17 06:05:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-04-17 06:05:19 +0000 |
commit | 87e43259f1f31bb1de748139bb56161d99c44962 (patch) | |
tree | 99bef4aecfba88423d2801356e731c186b14e94b /sim/mn10300/simops.c | |
parent | a895901a15f2a103b51052cb1884ada96fd88690 (diff) | |
download | gdb-87e43259f1f31bb1de748139bb56161d99c44962.zip gdb-87e43259f1f31bb1de748139bb56161d99c44962.tar.gz gdb-87e43259f1f31bb1de748139bb56161d99c44962.tar.bz2 |
Cleanups to compile under FreeBSD
Diffstat (limited to 'sim/mn10300/simops.c')
-rw-r--r-- | sim/mn10300/simops.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sim/mn10300/simops.c b/sim/mn10300/simops.c index 27f6fda..5f9fc92 100644 --- a/sim/mn10300/simops.c +++ b/sim/mn10300/simops.c @@ -2920,10 +2920,12 @@ void OP_F020 (insn, extension) RETVAL = execve (MEMPTR (PARM1), (char **) MEMPTR (PARM2), (char **)MEMPTR (PARM3)); break; +#ifdef SYS_execv case SYS_execv: RETVAL = execve (MEMPTR (PARM1), (char **) MEMPTR (PARM2), NULL); break; #endif +#endif case SYS_read: RETVAL = mn10300_callback->read (mn10300_callback, PARM1, @@ -2986,9 +2988,12 @@ void OP_F020 (insn, extension) case SYS_chmod: RETVAL = chmod (MEMPTR (PARM1), PARM2); break; +#ifdef SYS_time case SYS_time: - RETVAL = time (MEMPTR (PARM1)); + RETVAL = time ((void*) MEMPTR (PARM1)); break; +#endif +#ifdef SYS_times case SYS_times: { struct tms tms; @@ -2999,6 +3004,7 @@ void OP_F020 (insn, extension) store_mem (PARM1 + 12, 4, tms.tms_cstime); break; } +#endif case SYS_gettimeofday: { struct timeval t; @@ -3010,11 +3016,13 @@ void OP_F020 (insn, extension) store_mem (PARM2 + 4, 4, tz.tz_dsttime); break; } +#ifdef SYS_utime case SYS_utime: /* Cast the second argument to void *, to avoid type mismatch if a prototype is present. */ RETVAL = utime (MEMPTR (PARM1), (void *) MEMPTR (PARM2)); break; +#endif default: abort (); } |