mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Unbreak
PR: ports/77612 Submitted by: Johan van Selst <johans@stack.nl>
This commit is contained in:
parent
6025141ff0
commit
f1446d79ab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=129115
2 changed files with 22 additions and 4 deletions
|
@ -38,10 +38,6 @@ MAN1= xsidplay.1
|
|||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 502126
|
||||
BROKEN= "Does not compile on FreeBSD >= 5.x"
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "alpha"
|
||||
CFLAGS+= -O0
|
||||
.endif
|
||||
|
|
22
audio/xsidplay/files/patch-src-songlendb-File.cpp
Normal file
22
audio/xsidplay/files/patch-src-songlendb-File.cpp
Normal file
|
@ -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 <sys/types.h>
|
||||
#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 )
|
||||
{
|
Loading…
Add table
Reference in a new issue