* [Buildroot] [PATCH] package/urg: fix build (missing header)
@ 2016-09-15 4:40 Samuel Martin
2016-09-16 17:01 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Samuel Martin @ 2016-09-15 4:40 UTC (permalink / raw)
To: buildroot
Update select-h patch to also fix the C++ serial driver.
Fixes:
http://autobuild.buildroot.net/results/cd7/cd76699188d2ee99b5f2d32b6a797de0d832a192/
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
package/urg/0001-select-h.patch | 40 +++++++++++++++++++++++++++++++++++-----
1 file changed, 35 insertions(+), 5 deletions(-)
diff --git a/package/urg/0001-select-h.patch b/package/urg/0001-select-h.patch
index 09d1530..eb955be 100644
--- a/package/urg/0001-select-h.patch
+++ b/package/urg/0001-select-h.patch
@@ -1,11 +1,41 @@
---- urg-0.8.18/src/c/connection/serial_ctrl_lin.c 2010-11-22 01:48:01.000000000 +0000
-+++ urg-0.8.18.mod/src/c/connection/serial_ctrl_lin.c 2013-05-21 20:56:35.822025969 +0100
-@@ -17,7 +17,7 @@
- #include <fcntl.h>
+From 08c7ebec7c58fbc9c1cc0542863b34119c75c91f Mon Sep 17 00:00:00 2001
+From: Samuel Martin <s.martin49@gmail.com>
+Date: Thu, 15 Sep 2016 06:19:57 +0200
+Subject: [PATCH] Serial driver: add missing header to C and C++ serial driver
+
+Fixes:
+ http://autobuild.buildroot.net/results/cd7/cd76699188d2ee99b5f2d32b6a797de0d832a192/
+
+Signed-off-by: Samuel Martin <s.martin49@gmail.com>
+---
+ src/c/connection/serial_ctrl_lin.c | 1 +
+ src/cpp/connection/SerialDevice_lin.cpp | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/src/c/connection/serial_ctrl_lin.c b/src/c/connection/serial_ctrl_lin.c
+index 11d818d..93aafa4 100644
+--- a/src/c/connection/serial_ctrl_lin.c
++++ b/src/c/connection/serial_ctrl_lin.c
+@@ -18,6 +18,7 @@
#include <errno.h>
#include <string.h>
--
+
+#include <sys/select.h>
//#include <ctype.h>
enum {
+diff --git a/src/cpp/connection/SerialDevice_lin.cpp b/src/cpp/connection/SerialDevice_lin.cpp
+index 0483886..dfda56c 100644
+--- a/src/cpp/connection/SerialDevice_lin.cpp
++++ b/src/cpp/connection/SerialDevice_lin.cpp
+@@ -13,6 +13,7 @@
+ #include <cerrno>
+ #include <cstring>
+ #include <cstdio>
++#include <sys/select.h>
+
+
+ class RawSerialDevice
+--
+2.9.3
+
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] package/urg: fix build (missing header)
2016-09-15 4:40 [Buildroot] [PATCH] package/urg: fix build (missing header) Samuel Martin
@ 2016-09-16 17:01 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-09-16 17:01 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 15 Sep 2016 06:40:04 +0200, Samuel Martin wrote:
> Update select-h patch to also fix the C++ serial driver.
>
> Fixes:
> http://autobuild.buildroot.net/results/cd7/cd76699188d2ee99b5f2d32b6a797de0d832a192/
>
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> ---
> package/urg/0001-select-h.patch | 40 +++++++++++++++++++++++++++++++++++-----
> 1 file changed, 35 insertions(+), 5 deletions(-)
Applied to master, thanks. I had to re-do the patch again, but it was
in fact not your fault, but the usual "line endings" problem.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-16 17:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-15 4:40 [Buildroot] [PATCH] package/urg: fix build (missing header) Samuel Martin
2016-09-16 17:01 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox