0001-vt.c-add-missing-include-to-fix-building-with-uClibc.patch 1.3 KB

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