From cf41b81e4a59a36acef130dcaf34defd901eb870 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: I06a6a9f7efd456843d1e4fdcc9003b839d7f3329 --- include/wrapper/fdtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/wrapper/fdtable.h b/include/wrapper/fdtable.h index 559a1dce..8f01a194 100644 --- a/include/wrapper/fdtable.h +++ b/include/wrapper/fdtable.h @@ -10,6 +10,7 @@ #include #include +#include #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0)) static inline -- 2.34.1