0001-select-h.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 08c7ebec7c58fbc9c1cc0542863b34119c75c91f Mon Sep 17 00:00:00 2001
  2. From: Samuel Martin <s.martin49@gmail.com>
  3. Date: Thu, 15 Sep 2016 06:19:57 +0200
  4. Subject: [PATCH] Serial driver: add missing header to C and C++ serial driver
  5. Fixes:
  6. http://autobuild.buildroot.net/results/cd7/cd76699188d2ee99b5f2d32b6a797de0d832a192/
  7. Signed-off-by: Samuel Martin <s.martin49@gmail.com>
  8. ---
  9. src/c/connection/serial_ctrl_lin.c | 1 +
  10. src/cpp/connection/SerialDevice_lin.cpp | 1 +
  11. 2 files changed, 2 insertions(+)
  12. Index: b/src/c/connection/serial_ctrl_lin.c
  13. ===================================================================
  14. --- a/src/c/connection/serial_ctrl_lin.c
  15. +++ b/src/c/connection/serial_ctrl_lin.c
  16. @@ -18,6 +18,7 @@
  17. #include <errno.h>
  18. #include <string.h>
  19. +#include <sys/select.h>
  20. //#include <ctype.h>
  21. enum {
  22. Index: b/src/cpp/connection/SerialDevice_lin.cpp
  23. ===================================================================
  24. --- a/src/cpp/connection/SerialDevice_lin.cpp
  25. +++ b/src/cpp/connection/SerialDevice_lin.cpp
  26. @@ -13,7 +13,7 @@
  27. #include <cerrno>
  28. #include <cstring>
  29. #include <cstdio>
  30. -
  31. +#include <sys/select.h>
  32. class RawSerialDevice
  33. {