projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: kernels >= 2.6.33 put utsrelease.h in generated/
[lttng-modules.git]
/
lttng-kernel-version.h
diff --git
a/lttng-kernel-version.h
b/lttng-kernel-version.h
index e8353fd4724e1a86220dfd70d9be9d2dc7c91459..ec8cee0b30bc2a710f0629e14ceb89265ac0593d 100644
(file)
--- a/
lttng-kernel-version.h
+++ b/
lttng-kernel-version.h
@@
-24,7
+24,12
@@
*/
#include <linux/version.h>
*/
#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/utsrelease.h>
+#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) */
#include <linux/utsrelease.h>
#include <linux/utsrelease.h>
+#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) */
/*
* This macro checks if the kernel version is between the two specified
/*
* This macro checks if the kernel version is between the two specified
This page took
0.02458 seconds
and
4
git commands to generate.