summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-12-05 22:48:03 +0000
committerjoerg <joerg@pkgsrc.org>2011-12-05 22:48:03 +0000
commita65dc2440adbcd56dc47d4d7ebd5bf03fa897326 (patch)
treeb074e56784ba4723c0b025d545045e0b6d5fee0d
parent9cdeb4cb87a4bbe269e66c78e0f2c991121f2c3f (diff)
downloadpkgsrc-a65dc2440adbcd56dc47d4d7ebd5bf03fa897326.tar.gz
Newer GCC is more picky in the variable naming, so help it a bit.
-rw-r--r--games/xkobo/distinfo4
-rw-r--r--games/xkobo/patches/patch-scenes.C13
-rw-r--r--games/xkobo/patches/patch-scenes.h12
3 files changed, 28 insertions, 1 deletions
diff --git a/games/xkobo/distinfo b/games/xkobo/distinfo
index 9d2712cd7b5..8fd526c9224 100644
--- a/games/xkobo/distinfo
+++ b/games/xkobo/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2011/09/12 21:19:26 shattered Exp $
+$NetBSD: distinfo,v 1.10 2011/12/05 22:48:03 joerg Exp $
SHA1 (xkobo-1.11.tar.gz) = 6ac1c0fe86b7fa524eb86f40b89e86ee6cbe3c5d
RMD160 (xkobo-1.11.tar.gz) = 874ed89a6ed7da56f41b3867cf2cc45f0bcf9683
@@ -9,3 +9,5 @@ SHA1 (patch-ac) = 59794fcdf0b6af8076e0309fdfb0449b35441ea6
SHA1 (patch-ad) = 64f7bf27f5005fca02c0e0c5fc1c30210829750c
SHA1 (patch-ae) = 48fb06d8089250a697d28df73638d364e98ab269
SHA1 (patch-af) = 6557a35bc96e3967fd4c05d39f8054288dca76eb
+SHA1 (patch-scenes.C) = 905a740848ab4b9cea901f8ee48016d3fb2fb3c9
+SHA1 (patch-scenes.h) = 368ebaa483a04411896a606670ff38d651a1a6f5
diff --git a/games/xkobo/patches/patch-scenes.C b/games/xkobo/patches/patch-scenes.C
new file mode 100644
index 00000000000..9f273f77a11
--- /dev/null
+++ b/games/xkobo/patches/patch-scenes.C
@@ -0,0 +1,13 @@
+$NetBSD: patch-scenes.C,v 1.1 2011/12/05 22:48:03 joerg Exp $
+
+--- scenes.C.orig 2011-12-05 19:54:57.000000000 +0000
++++ scenes.C
+@@ -22,7 +22,7 @@
+
+ #include "scenes.h"
+
+-_scene scene[] = {
++extern "C" _scene scene[] = {
+ /* 1 */
+ {
+ 0, 32, 96,
diff --git a/games/xkobo/patches/patch-scenes.h b/games/xkobo/patches/patch-scenes.h
new file mode 100644
index 00000000000..9016460f4c0
--- /dev/null
+++ b/games/xkobo/patches/patch-scenes.h
@@ -0,0 +1,12 @@
+$NetBSD: patch-scenes.h,v 1.1 2011/12/05 22:48:03 joerg Exp $
+
+--- scenes.h.orig 2011-12-05 19:54:48.000000000 +0000
++++ scenes.h
+@@ -55,6 +55,6 @@ typedef const struct {
+ _base base[SCENE_BASE_MAX];
+ } _scene;
+
+-extern _scene scene[];
++extern "C" _scene scene[];
+
+ #endif // XKOBO_H_SCENES