mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 22:10:13 +00:00
hurd: Fix allocalim build
* sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not check size against PTHREAD_STACK_MIN.
This commit is contained in:
parent
e925416840
commit
a902a0866a
@ -92,6 +92,8 @@
|
||||
_hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
|
||||
* sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
|
||||
_POSIX_NO_TRUNC): Define to 0.
|
||||
* sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
|
||||
check size against PTHREAD_STACK_MIN.
|
||||
|
||||
2008-12-18 Thomas Schwinge <tschwinge@gnu.org>
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user