diff options
author | 2012-02-25 16:45:03 +0000 | |
---|---|---|
committer | 2012-02-25 16:45:03 +0000 | |
commit | aa2a59ffb6627cd885e1cc2ea3ae4c9025ab52ac (patch) | |
tree | 1c24c490f1ddd50fec5b61adbdb2c0af82c37be0 /sys/kern/sys_process.c | |
parent | Allow a single option to be specified to show-options to show just that (diff) | |
download | wireguard-openbsd-aa2a59ffb6627cd885e1cc2ea3ae4c9025ab52ac.tar.xz wireguard-openbsd-aa2a59ffb6627cd885e1cc2ea3ae4c9025ab52ac.zip |
Allow this to build on platforms lacking PT_GETFPREGS or PT_SETFPREGS; broken
in previous rev.
Diffstat (limited to 'sys/kern/sys_process.c')
-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) |