[oe-commits] : openredalert: Add patch to fix compilation with GCC 4.3.

OE GIT Trial gittrial at amethyst.openembedded.net
Tue Sep 23 06:40:11 UTC 2008


Module: OE.dev
Branch: org.openembedded.dev
Commit: bd95d1bc8c897d931bf97ced66f8b40a33687dc5
URL:    http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=bd95d1bc8c897d931bf97ced66f8b40a33687dc5

Author:  <thebohemian at openembedded.org>
Date:   Tue Sep 23 05:17:34 2008 +0000

openredalert: Add patch to fix compilation with GCC 4.3.

---

 packages/cnc/openredalert/gcc43-fix.patch |   13 +++++++++++++
 packages/cnc/openredalert_r438.bb         |    3 +++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/packages/cnc/openredalert/gcc43-fix.patch b/packages/cnc/openredalert/gcc43-fix.patch
new file mode 100644
index 0000000..aa99d99
--- /dev/null
+++ b/packages/cnc/openredalert/gcc43-fix.patch
@@ -0,0 +1,13 @@
+Index: openredalert-0.0+svnr438-r0/src/misc/Compression.h
+===================================================================
+--- openredalert-0.0+svnr438-r0.orig/src/misc/Compression.h	2008-09-21 15:20:33.000000000 +0200
++++ openredalert-0.0+svnr438-r0/src/misc/Compression.h	2008-09-21 15:21:10.000000000 +0200
+@@ -20,6 +20,8 @@
+ 
+ #include "SDL/SDL_types.h"
+ 
++#include <cstring>
++
+ /** 
+  * Various decompression routines for format80, format40, and 
+  * format20 type graphics
diff --git a/packages/cnc/openredalert_r438.bb b/packages/cnc/openredalert_r438.bb
index 4da2456..098f293 100644
--- a/packages/cnc/openredalert_r438.bb
+++ b/packages/cnc/openredalert_r438.bb
@@ -4,8 +4,11 @@ LICENSE = "GPLv2"
 DEPENDS = "virtual/libsdl libsdl-mixer" 
 
 SRC_URI = "http://openredalert.googlecode.com/files/openredalert-${PV}-src.tar.gz \
+           file://gcc43-fix.patch;patch=1 \
            file://openredalert-launcher"
 
+PR = "r1"
+
 S = "${WORKDIR}"
 
 CFLAGS_append = " -I. -I${STAGING_INCDIR}"





More information about the Openembedded-commits mailing list