diff --git a/fcst/Kbuild b/fcst/Kbuild index 1954f60a5..1762fa4a0 100644 --- a/fcst/Kbuild +++ b/fcst/Kbuild @@ -1,5 +1,5 @@ KBUILD_EXTRA_SYMBOLS=$(src)/../scst/src/Module.symvers -ccflags-y += -I$(src)/../scst/include +ccflags-y += -I$(src)/../scst/include $(shell ev=$$(basename $$(pwd)); echo "ev=$$ev" >&2; [ "$${ev/uek}" != "$${ev}" ] && ev=$${ev/*.el/} && echo -DUEK_RELEASE=$${ev/uek.*}) obj-$(CONFIG_FCST) += fcst.o diff --git a/fcst/ft_cmd.c b/fcst/ft_cmd.c index 8617352b3..2955165e4 100644 --- a/fcst/ft_cmd.c +++ b/fcst/ft_cmd.c @@ -20,8 +20,7 @@ #include #include #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) && \ - !(LINUX_VERSION_CODE == KERNEL_VERSION(5, 4, 17) && \ - defined(UEK_KABI_RENAME)) + (!defined(UEK_RELEASE) || UEK_RELEASE -0 < 8) #include #else #include diff --git a/fcst/ft_io.c b/fcst/ft_io.c index f540485a8..cabce0937 100644 --- a/fcst/ft_io.c +++ b/fcst/ft_io.c @@ -25,8 +25,7 @@ #include #include #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 11, 0) && \ - !(LINUX_VERSION_CODE == KERNEL_VERSION(5, 4, 17) && \ - defined(UEK_KABI_RENAME)) + (!defined(UEK_RELEASE) || UEK_RELEASE -0 < 8) #include #else #include