From e4b83493c9509adaa286ebc6a50136cd3d85eb15 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sun, 21 Aug 2011 20:40:58 +0100 Subject: zbedic: fix compilation on newer systems Add include for stdlib.h which seems to no longer be included automatically on modern systems. Signed-off-by: Paul Eggleton --- recipes-qtopia/zbedic/zbedic/stdlib_h.patch | 14 ++++++++++++++ recipes-qtopia/zbedic/zbedic_1.2.bb | 5 +++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 recipes-qtopia/zbedic/zbedic/stdlib_h.patch (limited to 'recipes-qtopia/zbedic') diff --git a/recipes-qtopia/zbedic/zbedic/stdlib_h.patch b/recipes-qtopia/zbedic/zbedic/stdlib_h.patch new file mode 100644 index 0000000..e02fcca --- /dev/null +++ b/recipes-qtopia/zbedic/zbedic/stdlib_h.patch @@ -0,0 +1,14 @@ +Include stdlib.h for the abs() function. + +Signed-off-by: Paul Eggleton + +--- zbedic-1.2.orig/src/settings.cpp ++++ zbedic-1.2/src/settings.cpp +@@ -23,6 +23,7 @@ + ****************************************************************************/ + + #include ++#include + + #include + #include diff --git a/recipes-qtopia/zbedic/zbedic_1.2.bb b/recipes-qtopia/zbedic/zbedic_1.2.bb index 82ded79..4e63a91 100644 --- a/recipes-qtopia/zbedic/zbedic_1.2.bb +++ b/recipes-qtopia/zbedic/zbedic_1.2.bb @@ -6,11 +6,12 @@ LICENSE = "GPL" DEPENDS = "libbedic" APPTYPE = "binary" APPDESKTOP = "${WORKDIR}/misc" -PR = "r3" +PR = "r4" SRC_URI = "${SOURCEFORGE_MIRROR}/bedic/zbedic_${PV}-2.tgz;subdir=${BPN}-${PV} \ file://opie-icons.patch \ - file://qtopia17.patch" + file://qtopia17.patch \ + file://stdlib_h.patch" inherit opie export OE_QMAKE_LINK="${CXX}" -- cgit 1.2.3-korg