Index: /trunk/ccl/lisp-kernel/x86-exceptions.h
===================================================================
--- /trunk/ccl/lisp-kernel/x86-exceptions.h	(revision 4837)
+++ /trunk/ccl/lisp-kernel/x86-exceptions.h	(revision 4838)
@@ -92,2 +92,15 @@
   ID_clear_tcr_save_allocptr_tag_instruction
 } alloc_instruction_id;
+
+#ifdef LINUX
+#define SIGNUM_FOR_INTN_TRAP SIGSEGV
+#define IS_MAYBE_INT_TRAP(info,xp) ((info->si_code) &0x7f) == 0)
+#define SIGRETURN(context)
+#endif
+
+#ifdef FREEBSD
+extern void freebsd_sigreturn(ExceptionInformation *);
+#define SIGNUM_FOR_INTN_TRAP SIGBUS
+#define IS_MAYBE_INT_TRAP(info,xp) (xp->uc_mcontext.mc_trapno == T_PROTFLT)
+#define SIGRETURN(context) freebsd_sigreturn(context)
+#endif
