From 215dffda5d95a4d8d35c6751c7368876a70f2c09 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 19 Jan 2021 11:34:25 -0500 Subject: [PATCH] fix: missing include for 'task_struct' in fdtable.h In some kernel versions, linux/fdtable.h dereferences a pointer in a forward declared 'struct task_struct' without an include of 'linux/sched.h'. Add this missing include to the wrapper. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers Change-Id: Ie9d3cc8f0e37c0a671a16ce44c9dd3a8686e0ca8 --- wrapper/fdtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/wrapper/fdtable.h b/wrapper/fdtable.h index 86a6a079..d768c10f 100644 --- a/wrapper/fdtable.h +++ b/wrapper/fdtable.h @@ -10,6 +10,7 @@ #include #include +#include #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) static inline -- 2.34.1