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