]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: Fix constness issues with newer glibc (#39896)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 25 Nov 2025 23:32:54 +0000 (00:32 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Nov 2025 23:32:54 +0000 (00:32 +0100)
commit1d26bac43f4c0db2e677ca2707e88d11e370f1bf
tree6ee6028f76b14758beb14391337737b25316a2dd
parent33b0642e6ad33057a9f56763008e565d936d3948
parent0bac1ed2422f15308414dd1e9d09812a966b0348
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.
src/basic/time-util.c