From: Zbigniew Jędrzejewski-Szmek Date: Tue, 25 Nov 2025 23:32:54 +0000 (+0100) Subject: tree-wide: Fix constness issues with newer glibc (#39896) X-Git-Tag: v259-rc2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d26bac43f4c0db2e677ca2707e88d11e370f1bf;p=thirdparty%2Fsystemd.git tree-wide: Fix constness issues with newer glibc (#39896) Latest glibc uses _Generic to have strstr() and other functions return const char* or char* based on whether the input is a const char* or a char*. This causes build failures as we previously always expected a char*. Let's fix the compilation failures and add our own macros similar to glibc's to have string functions that return a mutable or const pointer depending on the input. --- 1d26bac43f4c0db2e677ca2707e88d11e370f1bf