diff --git a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_lzma.c b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_lzma.c index c58f7ae4bf0..6dcffd04203 100644 --- a/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_lzma.c +++ b/target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_lzma.c @@ -14,8 +14,13 @@ #include #include #include +#include +#if LINUX_VERSION_CODE < KERNEL_VERSION(6,12,0) #include +#else +#include +#endif #include "mtdsplit.h"