about summary refs log tree commit diff
path: root/sysdeps/pthread
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 19:33:37 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 19:35:02 +0100
commita902a0866abf4709852fa62302aab6d34a0b5240 (patch)
tree55b2c12df906bd609f7ee0c544f3ab4f1940e0cb /sysdeps/pthread
parente925416840b02ddbcf275f27981f4458221e1ad9 (diff)
downloadglibc-a902a0866abf4709852fa62302aab6d34a0b5240.tar.gz
glibc-a902a0866abf4709852fa62302aab6d34a0b5240.tar.xz
glibc-a902a0866abf4709852fa62302aab6d34a0b5240.zip
hurd: Fix allocalim build
* sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
check size against PTHREAD_STACK_MIN.
Diffstat (limited to 'sysdeps/pthread')
-rw-r--r--sysdeps/pthread/allocalim.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/pthread/allocalim.h b/sysdeps/pthread/allocalim.h
index b265d6f269..fdae0c251f 100644
--- a/sysdeps/pthread/allocalim.h
+++ b/sysdeps/pthread/allocalim.h
@@ -24,6 +24,9 @@ extern __always_inline
 int
 __libc_use_alloca (size_t size)
 {
-  return (__builtin_expect (size <= PTHREAD_STACK_MIN / 4, 1)
-	  || __builtin_expect (__libc_alloca_cutoff (size), 1));
+  return (
+#ifdef PTHREAD_STACK_MIN
+          __builtin_expect (size <= PTHREAD_STACK_MIN / 4, 1) ||
+#endif
+          __builtin_expect (__libc_alloca_cutoff (size), 1));
 }