ruby-changes:30729
From: nobu <ko1@a...>
Date: Tue, 3 Sep 2013 21:35:29 +0900 (JST)
Subject: [ruby-changes:30729] nobu:r42808 (trunk): thread_pthread.c: fix compile error on HP-UX
nobu 2013-09-03 21:35:22 +0900 (Tue, 03 Sep 2013) New Revision: 42808 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42808 Log: thread_pthread.c: fix compile error on HP-UX * thread_pthread.c (sys/dyntune.h): for gettune(). * thread_pthread.c (hpux_attr_getstackaddr): fix missing *. [ruby-core:56983] [Feature #8793] Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 42807) +++ ChangeLog (revision 42808) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Sep 3 21:35:19 2013 Nobuyoshi Nakada <nobu@r...> + + * thread_pthread.c (sys/dyntune.h): for gettune(). + + * thread_pthread.c (hpux_attr_getstackaddr): fix missing *. + [ruby-core:56983] [Feature #8793] + Tue Sep 3 20:12:46 2013 Tanaka Akira <akr@f...> * bignum.c (GMP_STR2BIG_DIGITS): New macro. Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 42807) +++ thread_pthread.c (revision 42808) @@ -493,6 +493,8 @@ size_t pthread_get_stacksize_np(pthread_ https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L493 #elif defined HAVE_PTHREAD_GETTHRDS_NP #define STACKADDR_AVAILABLE 1 #elif defined __ia64 && defined _HPUX_SOURCE +#include <sys/dyntune.h> + #define STACKADDR_AVAILABLE 1 /* @@ -519,7 +521,7 @@ size_t pthread_get_stacksize_np(pthread_ https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L521 * and could be retrieved by gettune(). */ static int -hpux_attr_getstackaddr(const pthread_attr_t *attr, void *addr) +hpux_attr_getstackaddr(const pthread_attr_t *attr, void **addr) { static uint64_t pagesize; size_t size; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/