diff options
author | bde <bde@FreeBSD.org> | 2002-02-03 04:09:02 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-02-03 04:09:02 +0000 |
commit | 10b0acc83425e75cf8b837508b5b8979a821bc30 (patch) | |
tree | 16fad0d0860e34b83bdf1ba4ae1fb837e25b2083 /sys/alpha | |
parent | 2547546bed043aa1f269555b72436419fb846c0d (diff) | |
download | FreeBSD-src-10b0acc83425e75cf8b837508b5b8979a821bc30.zip FreeBSD-src-10b0acc83425e75cf8b837508b5b8979a821bc30.tar.gz |
Improve the change in the previous commit: use a stub for osigreturn()
when it is not really used instead of unconditionalizing all of it.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/machdep.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index 73a6765..9ac2824 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -1446,6 +1446,7 @@ osigreturn(struct thread *td, struct osigcontext *sigcntxp; } */ *uap) { +#ifdef COMPAT_43 struct osigcontext *scp, ksc; struct proc *p = td->td_proc; @@ -1498,6 +1499,9 @@ osigreturn(struct thread *td, sizeof(struct fpreg)); td->td_pcb->pcb_fp_control = ksc.sc_fp_control; return (EJUSTRETURN); +#else /* !COMPAT_43 */ + return (ENOSYS); +#endif /* COMPAT_43 */ } int |