ntpd: Fix compile with glibc 2.34
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 9 Jan 2022 18:49:05 +0000 (18:49 +0000)
committerRosen Penev <rosenp@gmail.com>
Wed, 12 Jan 2022 00:23:00 +0000 (16:23 -0800)
commitd4b2345802e0a1386b23b719107a429995a3e3a1
tree444d2dbc9f9e32f55c4aaf14dd57c2a3a6ead10c
parent71d0d9a877d27bf367e5e4a202f96094a637f57f
ntpd: Fix compile with glibc 2.34

This adds a patch from Open embedded to fix compilation with glibc 2.34.
This patch was taken from here:
https://github.com/openembedded/meta-openembedded/blob/master/meta-networking/recipes-support/ntp/ntp/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch

It fixes the following build problem:
work_thread.c:45:57: error: missing binary operator before token "("
   45 | #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN
      |                                                         ^~~~~~~~~~~~~~~~~
make[7]: *** [Makefile:892: work_thread.o] Error 1

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
net/ntpd/Makefile
net/ntpd/patches/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch [new file with mode: 0644]