]> sourceware.org Git - systemtap.git/commitdiff
PR26142: Adapt to linux/vermagic.h file hiding ... but not on rhel6
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 30 Jun 2020 23:36:17 +0000 (19:36 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 30 Jun 2020 23:36:17 +0000 (19:36 -0400)
Keep working on pre-3.17.0 kernels, which didn't have the
<generated/utsrelease.h> file yet.

runtime/linux/runtime.h

index cc5df8329ae4c67c950644397623cb4b5b5b917e..8941fb20f8b156a3cc57779f09a3d9e29fbba1ad 100644 (file)
 #include <linux/hardirq.h>
 #include <asm/uaccess.h>
 #include <linux/kallsyms.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)
 #include <generated/utsrelease.h>
+#else
+#include <linux/vermagic.h>
+#endif
 #include <linux/utsname.h>
 #include <linux/version.h>
 #include <linux/compat.h>
This page took 0.029342 seconds and 5 git commands to generate.