The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / trinity / 0001-vt.c-add-missing-include-to-fix-building-with-uClibc.patch
1 vt.c: add missing include to fix building with uClibc
2
3 Backporting an upstream patch to fix a building issue with uClibc.
4
5 Upstream commit:
6
7   https://github.com/kernelslacker/trinity/commit/fb4a1adc4540f0702b84aa900f2b8ebed004885d
8
9 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
10
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
15
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:
19
20 ioctls/vt.c:152:8: error: invalid application of 'sizeof' to incomplete
21 type 'struct serial_rs485'
22   IOCTL(TIOCGRS485),
23
24 ioctls/vt.c:155:8: error: invalid application of 'sizeof' to incomplete
25 type 'struct serial_rs485'
26   IOCTL(TIOCSRS485),
27
28 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
29 ---
30  ioctls/vt.c |    1 +
31  1 files changed, 1 insertions(+), 0 deletions(-)
32
33 diff --git a/ioctls/vt.c b/ioctls/vt.c
34 index 5e7e7d7..a4a7e0c 100644
35 --- a/ioctls/vt.c
36 +++ b/ioctls/vt.c
37 @@ -1,6 +1,7 @@
38  #include <sys/vt.h>
39  #include <sys/ioctl.h>
40  #include <linux/kd.h>
41 +#include <linux/serial.h>
42  
43  #include "utils.h"
44  #include "ioctls.h"
45 -- 
46 1.7.1
47