summaryrefslogtreecommitdiff
path: root/libpthread/nptl
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl')
-rw-r--r--libpthread/nptl/allocatestack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpthread/nptl/allocatestack.c b/libpthread/nptl/allocatestack.c
index 137979542..7ef884543 100644
--- a/libpthread/nptl/allocatestack.c
+++ b/libpthread/nptl/allocatestack.c
@@ -599,7 +599,9 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
if (mprotect (guard, guardsize, PROT_NONE) != 0)
{
int err;
+#ifdef NEED_SEPARATE_REGISTER_STACK
mprot_error:
+#endif
err = errno;
lll_lock (stack_cache_lock, LLL_PRIVATE);