exfat: fix build on kernel 4.9 and 4.14

Fixes: #477
This commit is contained in:
AmadeusGhost 2021-09-27 23:09:20 +08:00
parent 85c98e5920
commit 04de9d5b37

View File

@ -0,0 +1,14 @@
--- a/balloc.c
+++ b/balloc.c
@@ -7,8 +7,10 @@
#include <linux/blkdev.h>
#include <linux/slab.h>
#include <linux/buffer_head.h>
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
#include <linux/sched/signal.h>
+#else
+#include <linux/sched.h>
#endif
#include "exfat_raw.h"