summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 39dfe55556..1843567693 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -63,6 +63,10 @@
#define va_init_list(a,b) va_start(a)
#endif
+#if defined(SIGSEGV) && defined(HAVE_SIGALTSTACK) && defined(SA_SIGINFO) && !defined(__NetBSD__)
+#define USE_SIGALTSTACK
+#endif
+
/*****************/
/* configuration */
/*****************/
@@ -473,6 +477,9 @@ typedef struct rb_thread_struct
/* misc */
int method_missing_reason;
int abort_on_exception;
+#ifdef USE_SIGALTSTACK
+ void *altstack;
+#endif
} rb_thread_t;
/* iseq.c */