From 0cb7cfd9738b331103e2713c57d0e9664c19cbd2 Mon Sep 17 00:00:00 2001 From: Bjarne von Horn Date: Thu, 6 Jun 2024 16:25:55 +0200 Subject: [PATCH] Fix very old kernels with CONFIG_SUSE_KERNEL --- devices/generic.c | 2 +- master/ethernet.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/generic.c b/devices/generic.c index fd6fc863..f6cef9b5 100644 --- a/devices/generic.c +++ b/devices/generic.c @@ -41,7 +41,7 @@ #define EC_GEN_RX_BUF_SIZE 1600 -#ifdef CONFIG_SUSE_KERNEL +#if defined(CONFIG_SUSE_KERNEL) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0) #include #else # ifndef SUSE_VERSION diff --git a/master/ethernet.c b/master/ethernet.c index b11ed09a..089c8aec 100644 --- a/master/ethernet.c +++ b/master/ethernet.c @@ -38,7 +38,7 @@ #include "mailbox.h" #include "ethernet.h" -#ifdef CONFIG_SUSE_KERNEL +#if defined(CONFIG_SUSE_KERNEL) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0) #include #else # ifndef SUSE_VERSION