$OpenBSD: patch-src_runtime_mach-dep_signal-sysdep_h,v 1.1.1.1 2002/06/29 13:25:10 espie Exp $
--- src/runtime/mach-dep/signal-sysdep.h.orig	Fri Dec  3 20:59:32 1999
+++ src/runtime/mach-dep/signal-sysdep.h	Sat Jun 29 15:11:35 2002
@@ -437,6 +437,21 @@ extern Addr_t *ML_X86Frame;   /* used to
 
      typedef void SigReturn_t;
 
+#  elif defined(OPSYS_OPENBSD)
+    /** x86, OpenBSD **/
+
+#    define SIG_FAULT1		SIGFPE
+#    define SIG_FAULT2		SIGBUS
+#    define INT_DIVZERO(s, c)	0
+#    define INT_OVFLW(s, c)	(((s) == SIGFPE) || ((s) == SIGBUS))
+
+#    define SIG_GetCode(info, scp)	(info)
+#    define SIG_GetPC(scp)		((scp)->sc_pc)
+#    define SIG_SetPC(scp, addr)	{ (scp)->sc_pc = (long)(addr); }
+#    define SIG_ZeroLimitPtr(scp)	{ ML_X86Frame[LIMITPTR_X86OFFSET] = 0; }
+
+     typedef void SigReturn_t;
+
 #  elif defined(OPSYS_SOLARIS)
      /** x86, Solaris */
 
