Wed Nov 23 22:32:59 2011 UTC ()
audio/xsidplay: Fix DragonFly breakage

Conditionally add <strings.h> for DragonFly.
No PKGREVISION bump required.


(marino)
diff -r1.11 -r1.12 pkgsrc/audio/xsidplay/distinfo
diff -r1.8 -r1.9 pkgsrc/audio/xsidplay/patches/patch-ab

cvs diff -r1.11 -r1.12 pkgsrc/audio/xsidplay/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/audio/xsidplay/Attic/distinfo 2009/12/09 21:19:59 1.11
+++ pkgsrc/audio/xsidplay/Attic/distinfo 2011/11/23 22:32:59 1.12
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.11 2009/12/09 21:19:59 joerg Exp $ 1$NetBSD: distinfo,v 1.12 2011/11/23 22:32:59 marino Exp $
2 2
3SHA1 (xsidplay-1.6.5.1a.tgz) = 60f2262a8dd79b276272d49eff9a07277dc6c9aa 3SHA1 (xsidplay-1.6.5.1a.tgz) = 60f2262a8dd79b276272d49eff9a07277dc6c9aa
4RMD160 (xsidplay-1.6.5.1a.tgz) = 9a0529c7b76e7659feddc35c04aaf81ae2002984 4RMD160 (xsidplay-1.6.5.1a.tgz) = 9a0529c7b76e7659feddc35c04aaf81ae2002984
5Size (xsidplay-1.6.5.1a.tgz) = 355698 bytes 5Size (xsidplay-1.6.5.1a.tgz) = 355698 bytes
6SHA1 (patch-aa) = ca8ce2db592937d2f5328aae885d9be0074e156e 6SHA1 (patch-aa) = ca8ce2db592937d2f5328aae885d9be0074e156e
7SHA1 (patch-ab) = 188ab597250e8a444d33f0813fba157a3469872e 7SHA1 (patch-ab) = f98480dfaafc7737be78448ec92c4734264f00cc
8SHA1 (patch-ac) = ec7d71b9cc3be97601c842d22887d147933853e3 8SHA1 (patch-ac) = ec7d71b9cc3be97601c842d22887d147933853e3

cvs diff -r1.8 -r1.9 pkgsrc/audio/xsidplay/patches/Attic/patch-ab (expand / switch to unified diff)

--- pkgsrc/audio/xsidplay/patches/Attic/patch-ab 2005/12/07 18:59:26 1.8
+++ pkgsrc/audio/xsidplay/patches/Attic/patch-ab 2011/11/23 22:32:59 1.9
@@ -1,13 +1,23 @@ @@ -1,13 +1,23 @@
1$NetBSD: patch-ab,v 1.8 2005/12/07 18:59:26 joerg Exp $ 1$NetBSD: patch-ab,v 1.9 2011/11/23 22:32:59 marino Exp $
2 2
3--- src/songlendb/File.cpp.orig 2005-12-07 16:56:52.000000000 +0000 3--- src/songlendb/File.cpp.orig 2002-03-03 18:00:03.000000000 +0000
4+++ src/songlendb/File.cpp 4+++ src/songlendb/File.cpp
5@@ -126,7 +126,7 @@ bool SongLengthFile::init(const char* fi 5@@ -27,6 +27,9 @@
 6 #ifdef XSID_HAVE_NOTHROW
 7 #include <new>
 8 #endif
 9+#if defined (__DragonFly__)
 10+#include <string.h>
 11+#endif
 12 using namespace std;
 13
 14 #include "File.h"
 15@@ -126,7 +129,7 @@ bool SongLengthFile::init(const char* fi
6 streampos fileLen = myIn.tellg(); 16 streampos fileLen = myIn.tellg();
7 #endif 17 #endif
8 #ifdef XSID_HAVE_NOTHROW 18 #ifdef XSID_HAVE_NOTHROW
9- pDB = new(std::nothrow) char[fileLen+1L]; 19- pDB = new(std::nothrow) char[fileLen+1L];
10+ pDB = new(std::nothrow) char[(size_t)fileLen+1L]; 20+ pDB = new(std::nothrow) char[(size_t)fileLen+1L];
11 #else 21 #else
12 pDB = new char[fileLen+1L]; 22 pDB = new char[fileLen+1L];
13 #endif 23 #endif