kernel: fix compile err in old kernel

This commit is contained in:
weishu
2023-07-02 19:06:31 +08:00
parent dfc2a86e70
commit ee5d2f8c84

View File

@@ -1,6 +1,11 @@
#include "linux/version.h"
#include "linux/fs.h"
#include "linux/nsproxy.h"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
#include "linux/sched/task.h"
#else
#include "linux/sched.h"
#endif
#include "klog.h" // IWYU pragma: keep
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)