From ee9de4209c04b0e251eaf379588c83581e52f6ae Mon Sep 17 00:00:00 2001 From: pav Date: Thu, 17 Feb 2005 22:47:16 +0000 Subject: - Unbreak PR: ports/77612 Submitted by: Johan van Selst --- audio/xsidplay/Makefile | 4 ---- audio/xsidplay/files/patch-src-songlendb-File.cpp | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 audio/xsidplay/files/patch-src-songlendb-File.cpp diff --git a/audio/xsidplay/Makefile b/audio/xsidplay/Makefile index 6d3e680156c..5d40ad9021b 100644 --- a/audio/xsidplay/Makefile +++ b/audio/xsidplay/Makefile @@ -38,10 +38,6 @@ MAN1= xsidplay.1 .include -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - .if ${MACHINE_ARCH} == "alpha" CFLAGS+= -O0 .endif diff --git a/audio/xsidplay/files/patch-src-songlendb-File.cpp b/audio/xsidplay/files/patch-src-songlendb-File.cpp new file mode 100644 index 00000000000..b6b8df16cae --- /dev/null +++ b/audio/xsidplay/files/patch-src-songlendb-File.cpp @@ -0,0 +1,22 @@ +--- src/songlendb/File.cpp.orig Sun Mar 3 19:00:03 2002 ++++ src/songlendb/File.cpp Thu Feb 17 22:46:43 2005 +@@ -29,6 +29,7 @@ + #endif + using namespace std; + ++#include + #include "File.h" + + // String comparison functor for sort function. +@@ -126,9 +127,9 @@ + streampos fileLen = myIn.tellg(); + #endif + #ifdef XSID_HAVE_NOTHROW +- pDB = new(std::nothrow) char[fileLen+1L]; ++ pDB = new(std::nothrow) char[(off_t)fileLen+1L]; + #else +- pDB = new char[fileLen+1L]; ++ pDB = new char[(off_t)fileLen+1L]; + #endif + if ( pDB == 0 ) + { -- cgit