diff mbox

urg: Add urg-select-h.patch.

Message ID CAFbHwiSckZivoEYjZQPsp-oX9_t8hR5cviVkGvwGLvq=xYkPSw@mail.gmail.com
State Accepted
Headers show

Commit Message

Will Newton May 21, 2013, 8:33 p.m. UTC
This patch fixes a build failure on AArch64 (and potentially others).
Make sure sys/select.h is included before using select(2).

Signed-off-by: Will Newton <will.newton@linaro.org>
---
 package/urg/urg-select-h.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 package/urg/urg-select-h.patch

+
+ enum {
--
1.8.1.4

Comments

Will Newton May 22, 2013, 11:12 a.m. UTC | #1
On Tue, May 21, 2013 at 9:33 PM, Will Newton <will.newton@gmail.com> wrote:
> This patch fixes a build failure on AArch64 (and potentially others).
> Make sure sys/select.h is included before using select(2).
>
> Signed-off-by: Will Newton <will.newton@linaro.org>
> ---
>  package/urg/urg-select-h.patch | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>  create mode 100644 package/urg/urg-select-h.patch
>
> diff --git a/package/urg/urg-select-h.patch b/package/urg/urg-select-h.patch
> new file mode 100644
> index 0000000..09d1530
> --- /dev/null
> +++ b/package/urg/urg-select-h.patch
> @@ -0,0 +1,11 @@
> +--- 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>
> + #include <errno.h>
> + #include <string.h>
> +-
> ++#include <sys/select.h>
> + //#include <ctype.h>
> +
> + enum {
> --
> 1.8.1.4

This patch has now been accepted upstream also.
Peter Korsgaard May 25, 2013, 11:28 a.m. UTC | #2
>>>>> "Will" == Will Newton <will.newton@gmail.com> writes:

 Will> This patch fixes a build failure on AArch64 (and potentially others).
 Will> Make sure sys/select.h is included before using select(2).

Committed, thanks.
diff mbox

Patch

diff --git a/package/urg/urg-select-h.patch b/package/urg/urg-select-h.patch
new file mode 100644
index 0000000..09d1530
--- /dev/null
+++ b/package/urg/urg-select-h.patch
@@ -0,0 +1,11 @@ 
+--- 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>
+ #include <errno.h>
+ #include <string.h>
+-
++#include <sys/select.h>
+ //#include <ctype.h>