]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ntp: Fix build against glibc >= 2.43
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 26 Jan 2026 15:55:27 +0000 (15:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Jan 2026 11:29:23 +0000 (11:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/ntp

diff --git a/lfs/ntp b/lfs/ntp
index 9f45d5564bf911434f3dac679eb9f862d9dee7cc..9d12a76801379eafed5b1e7345b39cbfd34af138 100644 (file)
--- a/lfs/ntp
+++ b/lfs/ntp
@@ -72,6 +72,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
        $(UPDATE_AUTOMAKE)
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/ntp-4.2.8_p15-configure-clang16.patch
+       cd $(DIR_APP) && sed -i 's/^extern void \*memchr(/extern void *(memchr)(/' include/l_stdlib.h
+       cd $(DIR_APP) && sed -i 's/^extern char \*strchr(/extern char *(strchr)(/' include/l_stdlib.h
        cd $(DIR_APP) && autoreconf -vfi
        cd $(DIR_APP) && \
                ./configure \