kernel: Fix compilation for non-gki kernels (#543)

This commit is contained in:
TwinbornPlate75
2025-11-08 01:19:11 +08:00
committed by GitHub
parent 74f24bafed
commit c24ed3b5c4
3 changed files with 46 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
#include <linux/file.h>
#include <linux/fs.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
typedef unsigned int __poll_t;
#endif
struct ksu_file_wrapper {
struct file* orig;
struct file_operations ops;