From 025f881d6a178f4b662b8487a0a7a203e58c3e7c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 17 Apr 2015 14:49:38 -0400 Subject: [PATCH] Fix: kernels >= 2.6.33 put utsrelease.h in generated/ Signed-off-by: Mathieu Desnoyers --- lttng-kernel-version.h | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1