sbrsh: Fix complilation with gcc 4.5
authorKhem Raj <raj.khem@gmail.com>
Tue, 26 Oct 2010 23:41:45 +0000 (16:41 -0700)
committerKhem Raj <raj.khem@gmail.com>
Tue, 26 Oct 2010 23:43:08 +0000 (16:43 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/scratchbox/sbrsh-7.1/add-limits.h.patch [new file with mode: 0644]
recipes/scratchbox/sbrsh_7.1.bb

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 (file)
index 0000000..ad11397
--- /dev/null
@@ -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 <sys/time.h>
+ #include <sys/stat.h>
+ #include <netinet/in.h>
+-
++#include <limits.h>
+ #define REQUIRED_VERSION 6
index 5a11ca8..cc9882e 100644 (file)
@@ -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}