Package: gambas3 / 3.13.0-1

termios-build-fix.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
29
30
31
32
From e365356c8bb3ccf3ac1a5e6eb86f67d400681c5b Mon Sep 17 00:00:00 2001
From: gambas <g4mba5@gmail.com>
Date: Tue, 7 May 2019 10:35:20 +0200
Subject: [PATCH] Workaround a bug in system header files on PPC systems.

[GB.NET]
* BUG: Workaround a bug in system header files on PPC systems.
---
 gb.net/src/speed.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gb.net/src/speed.c b/gb.net/src/speed.c
index d4b9cc24f..5af97a677 100644
--- a/gb.net/src/speed.c
+++ b/gb.net/src/speed.c
@@ -28,7 +28,12 @@
 
 #if OS_LINUX
 
-#include <asm/termios.h>
+#if ARCH_PPC
+	#include <asm-generic/ioctls.h>
+	#include <asm-generic/termbits.h>
+#else
+	#include <asm/termios.h>
+#endif
 
 int ioctl(int fd, unsigned long request, ...);
 
-- 
2.21.0