archrelease: copy trunk to extra-x86_64
[arch-packages.git] / ntp / trunk / ntp-4.2.8_p15-glibc-2.34.patch
bloba32f3adabd8bc2eb1f5b99f68d234572f739b4f8
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
17 @@ -41,7 +41,7 @@
18 #ifndef THREAD_MINSTACKSIZE
19 # define THREAD_MINSTACKSIZE (64U * 1024)
20 #endif
21 -#ifndef __sun
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
27 2.32.0