summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-19 00:20:29 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-09-19 00:20:29 +0200
commit9ac3988fe16fc0aeb5ddefdf28d1104237ec91ab (patch)
tree7bb48e39b98e34b523dcae0e6e49f89607da835c
parent8968cc85b696f305b8afe11c0a753ea1209f7abc (diff)
Fix getrlimit visibility
* pthread/pt-create.c (__pthread_create_internal): Call __getrlimit instead of getrlimit.
-rw-r--r--pthread/pt-create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c
index d88afae..417605a 100644
--- a/pthread/pt-create.c
+++ b/pthread/pt-create.c
@@ -107,7 +107,7 @@ __pthread_create_internal (struct __pthread **thread,
if (!stacksize)
{
struct rlimit rlim;
- getrlimit(RLIMIT_STACK, &rlim);
+ __getrlimit(RLIMIT_STACK, &rlim);
if (rlim.rlim_cur != RLIM_INFINITY)
stacksize = rlim.rlim_cur;
if (!stacksize)