summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index 434cbed..57795ab 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -233,6 +233,8 @@ TclpThreadGetStackSize(void)
}
pthread_attr_destroy(&threadAttr);
return (int) stackSize;
+#elif defined(HAVE_PTHREAD_GET_STACKSIZE_NP)
+ return (int) pthread_get_stacksize_np(pthread_self());
#else
/*
* Cannot determine the real stack size of this thread. The caller might