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.
This commit is contained in:
parent
18bf392b41
commit
284a78f5cc
|
@ -306,8 +306,8 @@ typedef struct
|
|||
#endif /* svr4 || SCO_DS */
|
||||
|
||||
|
||||
/* exception code definitions (already defined by FreeBSD) */
|
||||
#ifndef __FreeBSD__ /* FIXME: other BSDs? */
|
||||
/* exception code definitions (already defined by FreeBSD/NetBSD) */
|
||||
#if !defined(__FreeBSD__) && !defined(__NetBSD__) /* FIXME: other BSDs? */
|
||||
#define T_DIVIDE 0 /* Division by zero exception */
|
||||
#define T_TRCTRAP 1 /* Single-step exception */
|
||||
#define T_NMI 2 /* NMI interrupt */
|
||||
|
@ -329,6 +329,9 @@ typedef struct
|
|||
#define T_MCHK 18 /* Machine check exception */
|
||||
#define T_CACHEFLT 19 /* Cache flush exception */
|
||||
#endif
|
||||
#if defined(__NetBSD__)
|
||||
#define T_MCHK 19 /* Machine check exception */
|
||||
#endif
|
||||
|
||||
#define T_UNKNOWN (-1) /* Unknown fault (TRAP_sig not defined) */
|
||||
|
||||
|
|
Loading…
Reference in New Issue