Package: libexplain / 1.4.D001-16

termiox-no-more-exists-since-kernel-5.12.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Håvard Flaget Aasen <haavard_aasen@yahoo.no>
Date: Tue, 16 Nov 2021 20:12:31 +0100
Subject: termiox no more exists since kernel 5.12

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.12&id=c762a2b846b619c0f92f23e2e8e16f70d20df800

Origin: https://packages.altlinux.org/en/sisyphus/srpms/libexplain/patches/libexplain-1.4-remove-termiox.patch
---
 libexplain/buffer/termiox.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libexplain/buffer/termiox.h b/libexplain/buffer/termiox.h
index ae5a847..e51ddc7 100644
--- a/libexplain/buffer/termiox.h
+++ b/libexplain/buffer/termiox.h
@@ -21,7 +21,11 @@
 
 #include <libexplain/string_buffer.h>
 
-struct termiox; /* forward */
+/* make termiox empty
+   no more defined in Linux kernel since 5.12:
+   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.12&id=c762a2b846b619c0f92f23e2e8e16f70d20df800
+ */
+struct termiox {};
 
 /**
   * The explain_buffer_termiox function may be used