Fix: kernels >= 2.6.33 put utsrelease.h in generated/
[lttng-modules.git] / lttng-kernel-version.h
index 53a6a363a2c3052df45d32abe45118709ed286bf..ec8cee0b30bc2a710f0629e14ceb89265ac0593d 100644 (file)
  */
 
 #include <linux/version.h>
-#include <linux/module.h>
-#include <linux/vermagic.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>
+#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) */
 
 /*
  * This macro checks if the kernel version is between the two specified
This page took 0.023923 seconds and 4 git commands to generate.