Commit 284a78f5 authored by Bang Jun-Young's avatar Bang Jun-Young Committed by Alexandre Julliard

Do not use internal exception codes defined by Wine with NetBSD,

rather use native ones from /usr/include/i386/trap.h. Note that T_MCHK is not supported by NetBSD.
parent 18bf392b
...@@ -306,8 +306,8 @@ typedef struct ...@@ -306,8 +306,8 @@ typedef struct
#endif /* svr4 || SCO_DS */ #endif /* svr4 || SCO_DS */
/* exception code definitions (already defined by FreeBSD) */ /* exception code definitions (already defined by FreeBSD/NetBSD) */
#ifndef __FreeBSD__ /* FIXME: other BSDs? */ #if !defined(__FreeBSD__) && !defined(__NetBSD__) /* FIXME: other BSDs? */
#define T_DIVIDE 0 /* Division by zero exception */ #define T_DIVIDE 0 /* Division by zero exception */
#define T_TRCTRAP 1 /* Single-step exception */ #define T_TRCTRAP 1 /* Single-step exception */
#define T_NMI 2 /* NMI interrupt */ #define T_NMI 2 /* NMI interrupt */
...@@ -329,6 +329,9 @@ typedef struct ...@@ -329,6 +329,9 @@ typedef struct
#define T_MCHK 18 /* Machine check exception */ #define T_MCHK 18 /* Machine check exception */
#define T_CACHEFLT 19 /* Cache flush exception */ #define T_CACHEFLT 19 /* Cache flush exception */
#endif #endif
#if defined(__NetBSD__)
#define T_MCHK 19 /* Machine check exception */
#endif
#define T_UNKNOWN (-1) /* Unknown fault (TRAP_sig not defined) */ #define T_UNKNOWN (-1) /* Unknown fault (TRAP_sig not defined) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment