Development discussion of WireGuard
 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	[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

Development discussion of WireGuard

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ http://inbox.vuxu.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git