openredalert: Add patch to fix compilation with GCC 4.3.
authorRobert Schuster <thebohemian@gmx.net>
Tue, 23 Sep 2008 05:17:34 +0000 (05:17 +0000)
committerRobert Schuster <thebohemian@gmx.net>
Tue, 23 Sep 2008 05:17:34 +0000 (05:17 +0000)
packages/cnc/openredalert/gcc43-fix.patch [new file with mode: 0644]
packages/cnc/openredalert_r438.bb

diff --git a/packages/cnc/openredalert/gcc43-fix.patch b/packages/cnc/openredalert/gcc43-fix.patch
new file mode 100644 (file)
index 0000000..aa99d99
--- /dev/null
@@ -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 @@
\r
+ #include "SDL/SDL_types.h"\r
\r
++#include <cstring>\r
++\r
+ /** \r
+  * Various decompression routines for format80, format40, and \r
+  * format20 type graphics\r
index 4da2456..098f293 100644 (file)
@@ -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}"