summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-03 12:35:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-03 12:35:22 +0000
commit1908874bf4e65e6f65323099ff1d979a14a7a33e (patch)
treec10edff7855336bc661412de5a27d6f0341d255b /thread_pthread.c
parentc0e1f9e016a24300a7047bb7e7cb3dd1f283463e (diff)
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.c4
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;