From: Michael Tremer Date: Tue, 27 Jan 2026 16:19:44 +0000 (+0000) Subject: socat: Fix build against glibc >= 2.43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab514d410ef223c58d83d92e47860e6d655081ef;p=ipfire-2.x.git socat: Fix build against glibc >= 2.43 Signed-off-by: Michael Tremer --- diff --git a/lfs/socat b/lfs/socat index 66dc2472b..89a315e38 100644 --- a/lfs/socat +++ b/lfs/socat @@ -82,6 +82,7 @@ $(subst %,%_BLAKE2,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar xzf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/socat-1.8.1.0-printtime.patch cd $(DIR_APP) && ./configure --prefix=/usr cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) cd $(DIR_APP) && make install diff --git a/src/patches/socat-1.8.1.0-printtime.patch b/src/patches/socat-1.8.1.0-printtime.patch new file mode 100644 index 000000000..f1e2a43b7 --- /dev/null +++ b/src/patches/socat-1.8.1.0-printtime.patch @@ -0,0 +1,13 @@ +diff --git a/filan.c b/filan.c +index 101940a..85db9b4 100644 +--- a/filan.c ++++ b/filan.c +@@ -1105,7 +1105,7 @@ const char *getfiletypestring(int st_mode) { + } + + static int printtime(FILE *outfile, time_t time) { +- const char *s; ++ char *s; + + if (filan_rawoutput) { + fprintf(outfile, "\t"F_time, time);