From 009f1cb9a8b627c0d75023aa1099ab7c84f96188 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 25 Feb 2012 16:45:04 +0000 Subject: Allow this to build on platforms lacking PT_GETFPREGS or PT_SETFPREGS; broken in previous rev. --- sys/kern/sys_process.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys') 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) -- cgit v1.2.3