From 97222a4ffc9543e4c687755614512e43d439983f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 26 Oct 2010 16:41:45 -0700 Subject: [PATCH] sbrsh: Fix complilation with gcc 4.5 Signed-off-by: Khem Raj --- recipes/scratchbox/sbrsh-7.1/add-limits.h.patch | 13 +++++++++++++ recipes/scratchbox/sbrsh_7.1.bb | 6 ++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 recipes/scratchbox/sbrsh-7.1/add-limits.h.patch diff --git a/recipes/scratchbox/sbrsh-7.1/add-limits.h.patch b/recipes/scratchbox/sbrsh-7.1/add-limits.h.patch new file mode 100644 index 0000000000..ad113977e1 --- /dev/null +++ b/recipes/scratchbox/sbrsh-7.1/add-limits.h.patch @@ -0,0 +1,13 @@ +Index: sbrsh-7.1/client.c +=================================================================== +--- sbrsh-7.1.orig/client.c ++++ sbrsh-7.1/client.c +@@ -31,7 +31,7 @@ + #include + #include + #include +- ++#include + + #define REQUIRED_VERSION 6 + diff --git a/recipes/scratchbox/sbrsh_7.1.bb b/recipes/scratchbox/sbrsh_7.1.bb index 5a11ca86e9..cc9882e2d2 100644 --- a/recipes/scratchbox/sbrsh_7.1.bb +++ b/recipes/scratchbox/sbrsh_7.1.bb @@ -2,10 +2,12 @@ DESCRIPTION = "Daemon to allow scratchbox to use your device as a CPU tranparenc HOMEPAGE = "http://scratchbox.org" LICENSE = "GPLv2" DEPENDS = "fakeroot" -PR = "r2" +PR = "r3" RRECOMMENDS_${PN} = "kernel-module-nfs" -SRC_URI = "http://scratchbox.org/download/files/sbox-releases/1.0/src/${P}.tar.gz" +SRC_URI = "http://scratchbox.org/download/files/sbox-releases/1.0/src/${P}.tar.gz \ + file://add-limits.h.patch \ + " do_install() { install -d ${D}${sbindir} -- 2.39.5