Files
nixpkgs/pkgs/os-specific/linux/kernel/C23-compat-6.1.patch
Maximilian Bosch 12773d25e7 linux_6_1: fix build w/ glibc-2.44
Failing Hydra build: https://hydra.nixos.org/build/344163800

The full commit[1] doesn't apply on 6.1, so I ported the only relevant
portion to it.

Backport is currently pending[2] (as I've noticed after hand-rolling
this patch), so for now we're only applying what we actually need.

[1] https://lore.kernel.org/r/20251206092825.1471385-1-mikhail.v.gavrilov@gmail.com
[2] https://lore.kernel.org/all/2026051315-engorge-agreed-39cb@gregkh/
2026-09-19 16:44:03 +02:00

14 lines
451 B
Diff

diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index 7bd6aff6e260..33b214a91338 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -10748,7 +10748,7 @@ static int resolve_full_path(const char *file, char *result, size_t result_sz)
if (!search_paths[i])
continue;
for (s = search_paths[i]; s != NULL; s = strchr(s, ':')) {
- char *next_path;
+ const char *next_path;
int seg_len;
if (s[0] == ':')