summaryrefslogtreecommitdiff
path: root/emulators/wine-devel/files/install-patch-3.3-sys-sigtrap
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>1999-11-14 20:49:34 +0000
committerStefan Eßer <se@FreeBSD.org>1999-11-14 20:49:34 +0000
commitb0f8db3b556afaa63b3a5cddb46cb530934f4346 (patch)
treeebf1255ed0fdbdfe83d2470b5fa3f14fb3413c1f /emulators/wine-devel/files/install-patch-3.3-sys-sigtrap
parentAll VAXen of the world celebrate! MOPd is here. (diff)
Upgrade to 991031 version of Wine.
Compilation may fail on a system with an old Mesa3 port installed or if X11 headers from XFree-3.9.x are found on a system. This can be manually fixed by undefining all occurences of DGA/DGA2 and references to GL libraries in include/config.h in the work directory. Kernel patches are provided for 3.3-stable: see the files directory of the port (or $PREFIX/lib/wine/README.patches). The port upgrade is based on patches sent by Jürgen Lock (Thanks!) PR: 14652 Submitted by: nox@jelal.kn-bremen.de (Juergen Lock)
Notes
Notes: svn path=/head/; revision=23129
Diffstat (limited to 'emulators/wine-devel/files/install-patch-3.3-sys-sigtrap')
-rw-r--r--emulators/wine-devel/files/install-patch-3.3-sys-sigtrap30
1 files changed, 30 insertions, 0 deletions
diff --git a/emulators/wine-devel/files/install-patch-3.3-sys-sigtrap b/emulators/wine-devel/files/install-patch-3.3-sys-sigtrap
new file mode 100644
index 000000000000..e3004884fd29
--- /dev/null
+++ b/emulators/wine-devel/files/install-patch-3.3-sys-sigtrap
@@ -0,0 +1,30 @@
+Index: i386/i386/trap.c
+===================================================================
+RCS file: /home/cvs/cvs/src/sys/i386/i386/trap.c,v
+retrieving revision 1.133.2.1
+diff -u -u -r1.133.2.1 trap.c
+--- trap.c 1999/08/29 16:05:56 1.133.2.1
++++ trap.c 1999/09/10 14:42:21
+@@ -1041,6 +1084,7 @@
+ int error;
+ int args[8];
+ u_int code;
++ int tracedsyscall = ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM));
+
+ #ifdef DIAGNOSTIC
+ if (ISPL(frame.tf_cs) != SEL_UPL)
+@@ -1135,10 +1179,12 @@
+ break;
+ }
+
+- if ((frame.tf_eflags & PSL_T) && !(frame.tf_eflags & PSL_VM)) {
++ if (tracedsyscall) {
+ /* Traced syscall. */
+ frame.tf_eflags &= ~PSL_T;
+- trapsignal(p, SIGTRAP, 0);
++ /* tell the signal handler this is a trace trap */
++ frame.tf_trapno = T_TRCTRAP;
++ trapsignal(p, SIGTRAP, T_TRCTRAP);
+ }
+
+ userret(p, &frame, sticks);