From ddc3baaffeb3d4cbdc615d96f3e5a5a9d513ea2c Mon Sep 17 00:00:00 2001 From: dholland Date: Wed, 12 Jun 2013 01:57:23 +0000 Subject: Patch blindly based on the last 2013q1 netbsd-6 build report: add and fix signature of main(). (this package is i386-only) --- emulators/zsnes/distinfo | 4 ++-- emulators/zsnes/patches/patch-af | 28 +++++++++++++++++++++++++--- 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 #include #include ++#include +#include 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); + } -- cgit v1.2.3