diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-03 12:35:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-03 12:35:22 +0000 |
commit | 1908874bf4e65e6f65323099ff1d979a14a7a33e (patch) | |
tree | c10edff7855336bc661412de5a27d6f0341d255b | |
parent | c0e1f9e016a24300a7047bb7e7cb3dd1f283463e (diff) | |
download | ruby-1908874bf4e65e6f65323099ff1d979a14a7a33e.tar.gz |
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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | thread_pthread.c | 4 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,10 @@ +Tue Sep 3 21:35:19 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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@fsij.org> * bignum.c (GMP_STR2BIG_DIGITS): New macro. diff --git a/thread_pthread.c b/thread_pthread.c index 9d1395910e..74d1ab7517 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -493,6 +493,8 @@ size_t pthread_get_stacksize_np(pthread_t); #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_t); * 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; |