# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by scripts/Create-CopyPatch. # # T2 SDE: package/*/ntp/hotfix-glibc-2.24.patch # Copyright (C) 2021 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- In glibc 2.34+ PTHREAD_STACK_MIN is not a compile-time constant which could mean different stack sizes at runtime on different architectures and it also causes compile failure. Default glibc thread stack size or 64Kb set by ntp should be good in glibc these days. Upstream-Status: Pending Signed-off-by: Khem Raj --- libntp/work_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntp/work_thread.c b/libntp/work_thread.c index 03a5647..3ddd751 100644 --- a/libntp/work_thread.c +++ b/libntp/work_thread.c @@ -41,7 +41,7 @@ #ifndef THREAD_MINSTACKSIZE # define THREAD_MINSTACKSIZE(64U * 1024) #endif -#ifndef __sun +#if !defined(__sun) && !defined(__GLIBC__) #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN # undef THREAD_MINSTACKSIZE # define THREAD_MINSTACKSIZE PTHREAD_STACK_MIN