All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH compat] Update and improve detection of CentOS Stream 8
@ 2021-04-19 20:51 Peter Georg
  2021-04-23  1:52 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Georg @ 2021-04-19 20:51 UTC (permalink / raw)
  To: wireguard; +Cc: Peter Georg

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@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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH compat] Update and improve detection of CentOS Stream 8
  2021-04-19 20:51 [PATCH compat] Update and improve detection of CentOS Stream 8 Peter Georg
@ 2021-04-23  1:52 ` Jason A. Donenfeld
  0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2021-04-23  1:52 UTC (permalink / raw)
  To: peter.georg; +Cc: WireGuard mailing list

Applied, thanks!

https://git.zx2c4.com/wireguard-linux-compat/commit/?id=2cf9543bedc68b29760f85622ae228a256082ac6

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-23  1:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19 20:51 [PATCH compat] Update and improve detection of CentOS Stream 8 Peter Georg
2021-04-23  1:52 ` Jason A. Donenfeld

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.