summaryrefslogtreecommitdiff
path: root/emulators/wine/patches/patch-af
diff options
context:
space:
mode:
authoradam <adam>2005-02-16 12:22:11 +0000
committeradam <adam>2005-02-16 12:22:11 +0000
commitc58e0836223e264d11a32d088caa115c773d5ca0 (patch)
tree38820768461fbbc1f58f480c0fb5e8b16c89fdf5 /emulators/wine/patches/patch-af
parentdf9308ed4ecf48c6c4c65d32cb44fc148bb5f6bb (diff)
downloadpkgsrc-c58e0836223e264d11a32d088caa115c773d5ca0.tar.gz
Changes 20050211:
* Still more work on the MSI dll. * More OLE work, including a builtin stdole32.tlb. * Fixed inter-process window resize and repaint. * Lots of bug fixes.
Diffstat (limited to 'emulators/wine/patches/patch-af')
-rw-r--r--emulators/wine/patches/patch-af55
1 files changed, 55 insertions, 0 deletions
diff --git a/emulators/wine/patches/patch-af b/emulators/wine/patches/patch-af
new file mode 100644
index 00000000000..a6a0b99e45a
--- /dev/null
+++ b/emulators/wine/patches/patch-af
@@ -0,0 +1,55 @@
+$NetBSD: patch-af,v 1.10 2005/02/16 12:22:11 adam Exp $
+
+--- dlls/ntdll/signal_i386.c.orig 2005-02-16 10:30:28.000000000 +0000
++++ dlls/ntdll/signal_i386.c
+@@ -206,7 +206,7 @@ typedef struct trapframe SIGCONTEXT;
+
+ #endif /* bsdi */
+
+-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
++#if defined(__FreeBSD__) || defined(__OpenBSD__)
+
+ typedef struct sigcontext SIGCONTEXT;
+
+@@ -306,7 +306,40 @@ typedef struct ucontext SIGCONTEXT;
+
+ #endif /* __APPLE__ */
+
+-#if defined(linux) || defined(__NetBSD__) || defined(__FreeBSD__) ||\
++#if defined(__NetBSD__)
++# include <sys/ucontext.h>
++# include <sys/types.h>
++# include <signal.h>
++
++typedef struct __ucontext SIGCONTEXT;
++
++#define HANDLER_DEF(name) void name( int __signal, int code, SIGCONTEXT *__context )
++#define HANDLER_CONTEXT __context
++
++#define EAX_sig(context) ((context)->uc_mcontext.__gregs[_REG_EAX])
++#define EBX_sig(context) ((context)->uc_mcontext.__gregs[_REG_EBX])
++#define ECX_sig(context) ((context)->uc_mcontext.__gregs[_REG_ECX])
++#define EDX_sig(context) ((context)->uc_mcontext.__gregs[_REG_EDX])
++#define ESI_sig(context) ((context)->uc_mcontext.__gregs[_REG_ESI])
++#define EDI_sig(context) ((context)->uc_mcontext.__gregs[_REG_EDI])
++#define EBP_sig(context) ((context)->uc_mcontext.__gregs[_REG_EBP])
++
++#define CS_sig(context) ((context)->uc_mcontext.__gregs[_REG_CS])
++#define DS_sig(context) ((context)->uc_mcontext.__gregs[_REG_DS])
++#define ES_sig(context) ((context)->uc_mcontext.__gregs[_REG_ES])
++#define FS_sig(context) ((context)->uc_mcontext.__gregs[_REG_FS])
++#define GS_sig(context) ((context)->uc_mcontext.__gregs[_REG_GS])
++#define SS_sig(context) ((context)->uc_mcontext.__gregs[_REG_SS])
++
++#define EFL_sig(context) ((context)->uc_mcontext.__gregs[_REG_EFL])
++
++#define EIP_sig(context) (*((unsigned long*)&(context)->uc_mcontext.__gregs[_REG_EIP]))
++#define ESP_sig(context) (*((unsigned long*)&(context)->uc_mcontext.__gregs[_REG_EIP]))
++
++#endif /* NetBSD */
++
++
++#if defined(linux) || defined(__FreeBSD__) ||\
+ defined(__OpenBSD__) || defined(__EMX__) || defined(__CYGWIN__)
+
+ #define EAX_sig(context) ((context)->sc_eax)