trinity: fix building with uClibc
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Thu, 19 Mar 2015 09:27:37 +0000 (09:27 +0000)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 19 Mar 2015 12:37:51 +0000 (13:37 +0100)
commitaabfbd6139e1c180aed2a49c34992b6a332aefd2
tree5493238a2f3840a91360832993b9842a570db024
parentf0e9e311e8a6c8e8e0961a38a5dc46c1d213315d
trinity: fix building with uClibc

"#include <linux/serial.h>" 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 <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/trinity/0001-vt.c-add-missing-include-to-fix-building-with-uClibc.patch [new file with mode: 0644]