From: GNU Libc Maintainers Date: Tue, 18 Oct 2016 21:10:46 +0000 (+0000) Subject: tg-allocalim X-Git-Tag: archive/raspbian/2.25-3+rpi1~1^2^2^2^2^2^2^2^2^2^2^2~81 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c99263fd4986e42d18ab34530d724e3eeb12e539;p=glibc.git tg-allocalim =================================================================== Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name tg-allocalim.diff --- diff --git a/sysdeps/pthread/allocalim.h b/sysdeps/pthread/allocalim.h index 076889463..3d43d2a00 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)); }