kernel: Adapt Makefile for < k3.7

This commit is contained in:
Trijal Saha
2025-05-20 17:48:25 -04:00
committed by Rifat Azad
parent 69f8a2a5d6
commit fad59b6e54
2 changed files with 8 additions and 1 deletions

7
kernel/include/errno.h Normal file
View File

@@ -0,0 +1,7 @@
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
#include <uapi/asm-generic/errno-base.h> // For kernels 3.7 and newer
#else
#include <asm-generic/errno-base.h> // For kernels older than 3.7
#endif