44d5f1d05d
On attempt to build ntp with glibc 2.34 the following error happens:
-------------------------------->8------------------------------
In file included from .../output/host/lib/gcc/i586-buildroot-linux-gnu/10.3.0/include-fixed/pthread.h:42,
from work_thread.c:13:
work_thread.c:45:57: error: missing binary operator before token "("
45 | #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN
| ^~~~~~~~~~~~~~~~~
-------------------------------->8------------------------------
That's because starting from glibc 2.34 PTHREAD_STACK_MIN gets determined
dynamically in runtime via sysconf(), see [1].
Original fix proposed by Khem Raj in OpenEmbedded, see [2].
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=5d98a7dae955bafa6740c26eaba9c86060ae0344
[2]
|
||
---|---|---|
.. | ||
0001-nano.patch | ||
0002-ntp-syscalls-fallback.patch | ||
0003-override-shell.patch | ||
0004-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch | ||
Config.in | ||
ntp.hash | ||
ntp.mk | ||
ntpd.etc.conf | ||
ntpd.service | ||
S48sntp | ||
S49ntp |