Skip to content

Commit 2cf9543

Browse files
Peter Georgzx2c4
authored andcommitted
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>
1 parent 122f06b commit 2cf9543

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compat/compat-asm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#define ISRHEL7
1616
#elif RHEL_MAJOR == 8
1717
#define ISRHEL8
18-
#if RHEL_MINOR == 4
18+
#if RHEL_MINOR >= 4
1919
#define ISCENTOS8S
2020
#endif
2121
#endif

src/compat/compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define ISRHEL7
1717
#elif RHEL_MAJOR == 8
1818
#define ISRHEL8
19-
#if RHEL_MINOR == 4
19+
#if RHEL_MINOR >= 4
2020
#define ISCENTOS8S
2121
#endif
2222
#endif

0 commit comments

Comments
 (0)