From: Vicente Olivert Riera Date: Thu, 19 Mar 2015 09:27:37 +0000 (+0000) Subject: trinity: fix building with uClibc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aabfbd6139e1c180aed2a49c34992b6a332aefd2;p=buildroot.git trinity: fix building with uClibc "#include " is needed in order to build trinity successfully with uClibc. Otherwise it would fail displaying an error message like this one: ----------------------------------------- ioctls/vt.c:152:8: error: invalid application of 'sizeof' to incomplete type 'struct serial_rs485' IOCTL(TIOCGRS485), ioctls/vt.c:155:8: error: invalid application of 'sizeof' to incomplete type 'struct serial_rs485' IOCTL(TIOCSRS485), ----------------------------------------- Backporting an upstream patch to fix this problem. Upstream commit: https://github.com/kernelslacker/trinity/commit/fb4a1adc4540f0702b84aa900f2b8ebed004885d Fixes: http://autobuild.buildroot.net/results/ca1/ca18c7d19ac2870d6b973923c8225509a12f831a/ Signed-off-by: Vicente Olivert Riera Signed-off-by: Thomas Petazzoni --- diff --git a/package/trinity/0001-vt.c-add-missing-include-to-fix-building-with-uClibc.patch b/package/trinity/0001-vt.c-add-missing-include-to-fix-building-with-uClibc.patch new file mode 100644 index 0000000000..e1d23cd600 --- /dev/null +++ b/package/trinity/0001-vt.c-add-missing-include-to-fix-building-with-uClibc.patch @@ -0,0 +1,47 @@ +vt.c: add missing include to fix building with uClibc + +Backporting an upstream patch to fix a building issue with uClibc. + +Upstream commit: + + https://github.com/kernelslacker/trinity/commit/fb4a1adc4540f0702b84aa900f2b8ebed004885d + +Signed-off-by: Vicente Olivert Riera + +From fb4a1adc4540f0702b84aa900f2b8ebed004885d Mon Sep 17 00:00:00 2001 +From: Vicente Olivert Riera +Date: Wed, 18 Mar 2015 09:58:46 +0000 +Subject: [PATCH] vt.c: add missing include to fix building with uClibc + +"#include " is needed in order to build trinity +successfully with uClibc. Otherwise it would fail displaying an error +message like this one: + +ioctls/vt.c:152:8: error: invalid application of 'sizeof' to incomplete +type 'struct serial_rs485' + IOCTL(TIOCGRS485), + +ioctls/vt.c:155:8: error: invalid application of 'sizeof' to incomplete +type 'struct serial_rs485' + IOCTL(TIOCSRS485), + +Signed-off-by: Vicente Olivert Riera +--- + ioctls/vt.c | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/ioctls/vt.c b/ioctls/vt.c +index 5e7e7d7..a4a7e0c 100644 +--- a/ioctls/vt.c ++++ b/ioctls/vt.c +@@ -1,6 +1,7 @@ + #include + #include + #include ++#include + + #include "utils.h" + #include "ioctls.h" +-- +1.7.1 +