mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
27 lines
694 B
Plaintext
27 lines
694 B
Plaintext
$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)
|