summaryrefslogtreecommitdiff
path: root/sys/gnu/arch/i386/fpemul/fpu_trig.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-07-30 21:30:32 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-07-30 21:30:32 +0000
commitbf5a14ff2243191caef62f783bf97e3f2e012687 (patch)
tree26052a969090afd5343dcc6e1c967368f1ea5c7a /sys/gnu/arch/i386/fpemul/fpu_trig.c
parent1161c082493da91e94a0baa70d7c7905371f604a (diff)
Change:
#define I387 (*(union i387_union *)&(((struct pcb *)curproc->p_addr)->pcb_savefpu.gplemu)) To: #define I387 (curproc->p_addr->u_pcb.pcb_savefpu.gplemu) (and add a few includes of sys/user.h to make it work).
Diffstat (limited to 'sys/gnu/arch/i386/fpemul/fpu_trig.c')
-rw-r--r--sys/gnu/arch/i386/fpemul/fpu_trig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/gnu/arch/i386/fpemul/fpu_trig.c b/sys/gnu/arch/i386/fpemul/fpu_trig.c
index 8867cb61849..78460707693 100644
--- a/sys/gnu/arch/i386/fpemul/fpu_trig.c
+++ b/sys/gnu/arch/i386/fpemul/fpu_trig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu_trig.c,v 1.1 1996/08/27 10:32:50 downsj Exp $ */
+/* $OpenBSD: fpu_trig.c,v 1.2 2003/07/30 21:30:31 jason Exp $ */
/*
* fpu_trig.c
*
@@ -64,6 +64,7 @@
#include <sys/param.h>
#include <sys/proc.h>
+#include <sys/user.h>
#include <machine/cpu.h>
#include <machine/pcb.h>