[PATCH compat] Update and improve detection of CentOS Stream 8

Peter Georg peter.georg at physik.uni-regensburg.de
Mon Apr 19 20:51:25 UTC 2021


CentOS Stream 8 by now (4.18.0-301.1.el8) reports RHEL_MINOR=5. The
current RHEL 8 minor release is still 3. RHEL 8.4 is in beta. Replace
equal comparison by greater equal to (hopefully) be a little bit more
future proof.

Signed-off-by: Peter Georg <peter.georg at physik.uni-regensburg.de>
---
 src/compat/compat-asm.h | 2 +-
 src/compat/compat.h     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/compat/compat-asm.h b/src/compat/compat-asm.h
index 7067afd..fde21da 100644
--- a/src/compat/compat-asm.h
+++ b/src/compat/compat-asm.h
@@ -15,7 +15,7 @@
 #define ISRHEL7
 #elif RHEL_MAJOR == 8
 #define ISRHEL8
-#if RHEL_MINOR == 4
+#if RHEL_MINOR >= 4
 #define ISCENTOS8S
 #endif
 #endif
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 0227204..26a6d7e 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -16,7 +16,7 @@
 #define ISRHEL7
 #elif RHEL_MAJOR == 8
 #define ISRHEL8
-#if RHEL_MINOR == 4
+#if RHEL_MINOR >= 4
 #define ISCENTOS8S
 #endif
 #endif
-- 
2.31.1



More information about the WireGuard mailing list