From bd965bd73f23e63831330fbbc7408e9c3bdbcb61 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 23 Jan 2017 15:16:22 -0500 Subject: [PATCH] Fix: only include linux/cpuhotplug.h for kernels >= 4.10 Kernels at least <= 4.4 did not have this header file. Signed-off-by: Mathieu Desnoyers --- lttng-cpuhotplug.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lttng-cpuhotplug.h b/lttng-cpuhotplug.h index da965d2f..76a7cb80 100644 --- a/lttng-cpuhotplug.h +++ b/lttng-cpuhotplug.h @@ -21,11 +21,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include - struct lttng_cpuhp_node; #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) + +#include + enum lttng_cpuhp_component { LTTNG_RING_BUFFER_FRONTEND, LTTNG_RING_BUFFER_BACKEND, -- 2.34.1