mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-13 21:09:07 +08:00
Compare commits
1 Commits
detached
...
v1.2.p_net
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9907894225 |
@@ -74,7 +74,11 @@ static __u32 get_debian_kernel_version(struct utsname *info)
|
||||
if (sscanf(p, "Debian %u.%u.%u", &major, &minor, &patch) != 3)
|
||||
return 0;
|
||||
|
||||
return KERNEL_VERSION(major, minor, patch);
|
||||
// Patch to run on Debian 10
|
||||
if (major == 4 && minor == 19)
|
||||
return KERNEL_VERSION(major, minor, 255);
|
||||
else
|
||||
return KERNEL_VERSION(major, minor, patch);
|
||||
}
|
||||
|
||||
__u32 get_kernel_version(void)
|
||||
|
||||
Reference in New Issue
Block a user