aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorPeter Georg <peter.georg@physik.uni-regensburg.de>2021-04-19 22:51:25 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-04-22 19:51:51 -0600
commit2cf9543bedc68b29760f85622ae228a256082ac6 (patch)
treef45cab3583413796305ef98dd114a30acc749fb4 /src/compat/compat.h
parentcompat: icmp_ndo_send functions were backported extensively (diff)
downloadwireguard-linux-compat-2cf9543bedc68b29760f85622ae228a256082ac6.tar.xz
wireguard-linux-compat-2cf9543bedc68b29760f85622ae228a256082ac6.zip
compat: update and improve detection of CentOS Stream 8
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> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r--src/compat/compat.h2
1 files changed, 1 insertions, 1 deletions
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