mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-05 17:30:15 +08:00
Apply patch to run binaries on Debian 10
This commit is contained in:
1 parent
f8f9df60e0
commit
252dca2412
1 file changed
+3
@@ -74,6 +74,9 @@ static __u32 get_debian_kernel_version(struct utsname *info)
|
||||
if (sscanf(p, "Debian %u.%u.%u", &major, &minor, &patch) != 3)
|
||||
return 0;
|
||||
|
||||
if (major == 4 && minor == 19 && patch > 255)
|
||||
return KERNEL_VERSION(major, minor, 255);
|
||||
|
||||
return KERNEL_VERSION(major, minor, patch);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user