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 /thread_pthread.c | |
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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |