1 vt.c: add missing include to fix building with uClibc
3 Backporting an upstream patch to fix a building issue with uClibc.
7 https://github.com/kernelslacker/trinity/commit/fb4a1adc4540f0702b84aa900f2b8ebed004885d
9 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
11 From fb4a1adc4540f0702b84aa900f2b8ebed004885d Mon Sep 17 00:00:00 2001
12 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
13 Date: Wed, 18 Mar 2015 09:58:46 +0000
14 Subject: [PATCH] vt.c: add missing include to fix building with uClibc
16 "#include <linux/serial.h>" is needed in order to build trinity
17 successfully with uClibc. Otherwise it would fail displaying an error
18 message like this one:
20 ioctls/vt.c:152:8: error: invalid application of 'sizeof' to incomplete
21 type 'struct serial_rs485'
24 ioctls/vt.c:155:8: error: invalid application of 'sizeof' to incomplete
25 type 'struct serial_rs485'
28 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
31 1 files changed, 1 insertions(+), 0 deletions(-)
33 diff --git a/ioctls/vt.c b/ioctls/vt.c
34 index 5e7e7d7..a4a7e0c 100644
39 #include <sys/ioctl.h>
41 +#include <linux/serial.h>