diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2012-02-25 16:45:04 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2012-02-25 16:45:04 +0000 |
commit | 009f1cb9a8b627c0d75023aa1099ab7c84f96188 (patch) | |
tree | f4bf24d7806a9a6645f36f0d49bcc19511a7d095 /sys | |
parent | 887595800ef8bf789ec270ece50c23a54b3a7ec2 (diff) |
Allow this to build on platforms lacking PT_GETFPREGS or PT_SETFPREGS; broken
in previous rev.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sys_process.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 7ab663c1c65..57b761f2483 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_process.c,v 1.49 2012/02/20 22:23:39 guenther Exp $ */ +/* $OpenBSD: sys_process.c,v 1.50 2012/02/25 16:45:03 miod Exp $ */ /* $NetBSD: sys_process.c,v 1.55 1996/05/15 06:17:47 tls Exp $ */ /*- @@ -139,8 +139,12 @@ sys_ptrace(struct proc *p, void *v, register_t *retval) #endif case PT_GETREGS: case PT_SETREGS: +#ifdef PT_GETFPREGS case PT_GETFPREGS: +#endif +#ifdef PT_SETFPREGS case PT_SETFPREGS: +#endif if (SCARG(uap, pid) > THREAD_PID_OFFSET) { t = pfind(SCARG(uap, pid) - THREAD_PID_OFFSET); if (t == NULL) |