summaryrefslogtreecommitdiff
path: root/lang/ruby18-base/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby18-base/patches/patch-ad')
-rw-r--r--lang/ruby18-base/patches/patch-ad26
1 files changed, 26 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-ad b/lang/ruby18-base/patches/patch-ad
new file mode 100644
index 00000000000..b462b14dfbe
--- /dev/null
+++ b/lang/ruby18-base/patches/patch-ad
@@ -0,0 +1,26 @@
+$NetBSD: patch-ad,v 1.11 2010/09/10 03:29:00 taca Exp $
+
+* Fix warnings.
+* Fix for pthread: r26440
+
+--- eval.c.orig 2010-06-10 04:38:43.000000000 +0000
++++ eval.c
+@@ -779,7 +779,7 @@ static unsigned long frame_unique = 0;
+ _frame.argc = 0; \
+ _frame.flags = 0; \
+ _frame.uniq = frame_unique++; \
+- ruby_frame = &_frame
++ ruby_frame = (struct FRAME *)&_frame
+
+ #define POP_FRAME() \
+ ruby_current_node = _frame.node; \
+@@ -12250,7 +12250,9 @@ rb_thread_alloc(klass)
+ return th;
+ }
+
++#if defined(HAVE_SETITIMER) || defined(_THREAD_SAFE)
+ static int thread_init;
++#endif
+
+ #if defined(POSIX_SIGNAL)
+ #define CATCH_VTALRM() posix_signal(SIGVTALRM, catch_timer)