From: Mathieu Desnoyers Date: Fri, 17 Apr 2015 18:49:38 +0000 (-0400) Subject: Fix: kernels >= 2.6.33 put utsrelease.h in generated/ X-Git-Tag: v2.7.0-rc1~48 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9f61c55f4c543e66737361ab1877cf77b07ac592;p=lttng-modules.git Fix: kernels >= 2.6.33 put utsrelease.h in generated/ Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-kernel-version.h b/lttng-kernel-version.h index e8353fd4..ec8cee0b 100644 --- a/lttng-kernel-version.h +++ b/lttng-kernel-version.h @@ -24,7 +24,12 @@ */ #include + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) +#include +#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) */ #include +#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) */ /* * This macro checks if the kernel version is between the two specified