mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-13 21:09:07 +08:00
netdata_patch_1_4_5: Apply patch to libbpf
This commit is contained in:
@@ -97,6 +97,9 @@ __u32 get_kernel_version(void)
|
||||
if (sscanf(info.release, "%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