1 https://bugs.gentoo.org/806358
2 https://patchwork.openembedded.org/patch/180019/
4 From: Khem Raj <raj.khem@gmail.com>
5 Date: Sat, 31 Jul 2021 10:51:41 -0700
6 Subject: [PATCH] libntp: Do not use PTHREAD_STACK_MIN on glibc
8 In glibc 2.34+ PTHREAD_STACK_MIN is not a compile-time constant which
9 could mean different stack sizes at runtime on different architectures
10 and it also causes compile failure. Default glibc thread stack size
11 or 64Kb set by ntp should be good in glibc these days.
13 Upstream-Status: Pending
14 Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 --- a/libntp/work_thread.c
16 +++ b/libntp/work_thread.c
18 #ifndef THREAD_MINSTACKSIZE
19 # define THREAD_MINSTACKSIZE (64U * 1024)
22 +#if !defined(__sun) && !defined(__GLIBC__)
23 #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN
24 # undef THREAD_MINSTACKSIZE
25 # define THREAD_MINSTACKSIZE PTHREAD_STACK_MIN