KernelSU
KernelSU copied to clipboard
kernel: Make it compile on 3.18 (maybe older) kernels
input-event-codes.h:
Input: add input-event-codes header file (https://github.com/torvalds/linux/commit/f902dd893427eade90f7eaf858e5ff8b150a5a12) This was in 4.4-rc, so 4.4.0 or above has it else no.
aio.h: fs: move struct kiocb to fs.h (https://github.com/torvalds/linux/commit/e2e40f2c1ed433c5e224525c8c862fd32e5d3df2)
Below this version, we need to explicitly include aio.h for struct kiocb This was in 4.1-rc, so 4.0 or below should do the include
uaccess.h, sched.h was present for long times, but 4.10 splited out to include/sched/ but the current ifdef is not including uaccess.h for lower versions than 4.4. Fix it.