From b323b86b6b3a7283617b72b45521c554dba930c9 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 4 Feb 2010 07:17:03 +0000 Subject: * thread_pthread.c (native_thread_init_stack): use get_stack. patched by KOSAKI Motohiro [ruby-dev:40309] * thread_pthread.c (ruby_init_stack): use get_stack on platforms which have pthread_attr_get_np. (FreeBSD, DragonFlyBSD and NetBSD) This is because FreeBSD and DragonFly BSD must use pthread_attr_get_np to get stack size of main thread, but Mac OS X and Linux with LinuxThreads must use getrlimit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'thread_pthread.h') diff --git a/thread_pthread.h b/thread_pthread.h index 04254d7312..94658d4e0c 100644 --- a/thread_pthread.h +++ b/thread_pthread.h @@ -12,6 +12,9 @@ #define RUBY_THREAD_PTHREAD_H #include +#ifdef HAVE_PTHREAD_NP_H +#include +#endif typedef pthread_t rb_thread_id_t; typedef pthread_mutex_t rb_thread_lock_t; typedef pthread_cond_t rb_thread_cond_t; -- cgit v1.2.1