summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2013-06-12 01:57:23 +0000
committerdholland <dholland@pkgsrc.org>2013-06-12 01:57:23 +0000
commitddc3baaffeb3d4cbdc615d96f3e5a5a9d513ea2c (patch)
tree70847bb37ed357d20c16e3b0568ead73ab247643
parent40147290ea8efdede6081d182536aa001811dd56 (diff)
downloadpkgsrc-ddc3baaffeb3d4cbdc615d96f3e5a5a9d513ea2c.tar.gz
Patch blindly based on the last 2013q1 netbsd-6 build report:
add <cstdlib> and fix signature of main(). (this package is i386-only)
-rw-r--r--emulators/zsnes/distinfo4
-rw-r--r--emulators/zsnes/patches/patch-af28
2 files changed, 27 insertions, 5 deletions
diff --git a/emulators/zsnes/distinfo b/emulators/zsnes/distinfo
index 362e95aa336..26ca21bbb91 100644
--- a/emulators/zsnes/distinfo
+++ b/emulators/zsnes/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.16 2012/12/17 03:37:20 dholland Exp $
+$NetBSD: distinfo,v 1.17 2013/06/12 01:57:23 dholland Exp $
SHA1 (zsnes151src.tar.bz2) = 03df35490870c9950d7010747d0546c8525c0362
RMD160 (zsnes151src.tar.bz2) = 337407bf7e5516bcd7bf310c7b17d6d12a948750
@@ -8,7 +8,7 @@ SHA1 (patch-ab) = 2fa2fd6c4eb721d6588b9a72eb0dbf41c265c739
SHA1 (patch-ac) = 451e3a56da55d6d58ecc2c335b804ba374ed31e5
SHA1 (patch-ad) = 6244778c7f5c3c5d8c4f040760f8243161ae886d
SHA1 (patch-ae) = 81236ed52fe7095f6317f655374234ce17cf30dd
-SHA1 (patch-af) = f223476d4ef39a9fe9d60b827fc7c7e2d77f26ee
+SHA1 (patch-af) = 971ec4850936f24c5a519095e18ba79a39fe9653
SHA1 (patch-makefilein) = d75b9b99888106bfbc7c5d12b311527103ceaccd
SHA1 (patch-tools_strutil.h) = 18302bd76b325b2654a354282e3bf9ab8e9d8a0c
SHA1 (patch-zip_zpng.c) = bee7b0635afa9f22a05910b86c4f742296e1f78f
diff --git a/emulators/zsnes/patches/patch-af b/emulators/zsnes/patches/patch-af
index fad681b6755..17e4c10c7ec 100644
--- a/emulators/zsnes/patches/patch-af
+++ b/emulators/zsnes/patches/patch-af
@@ -1,12 +1,34 @@
-$NetBSD: patch-af,v 1.3 2007/04/16 16:06:32 joerg Exp $
+$NetBSD: patch-af,v 1.4 2013/06/12 01:57:24 dholland Exp $
---- tools/depbuild.cpp.orig 2007-04-16 15:40:03.000000000 +0000
+- use standard headers
+- the type of main() does not involve size_t
+
+--- tools/depbuild.cpp.orig 2006-12-27 11:04:05.000000000 +0000
+++ tools/depbuild.cpp
-@@ -24,6 +24,7 @@ This program generates dependencies for
+@@ -24,6 +24,8 @@ This program generates dependencies for
#include <iostream>
#include <string>
#include <cstdio>
++#include <cstdlib>
+#include <unistd.h>
using namespace std;
#include "fileutil.h"
+@@ -183,7 +185,7 @@ void dependency_calculate(const char *fi
+ }
+ }
+
+-int main(size_t argc, const char *const *const argv)
++int main(int argc, const char *const *const argv)
+ {
+ if (argc < 5)
+ {
+@@ -209,7 +211,7 @@ int main(size_t argc, const char *const
+ else
+ {
+ struct stat unused;
+- for (size_t i = 5; i < argc; i++)
++ for (int i = 5; i < argc; i++)
+ {
+ dependency_calculate(argv[i], unused);
+ }