From 83f6f83cb63ab2eb02f2cb0138c1e1ef23ab6741 Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 27 Nov 2011 19:33:55 +0000 Subject: Fix build with modern GCC --- audio/sidplay2/distinfo | 3 ++- .../patches/patch-src_audio_wav_WavFile.cpp | 27 ++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 audio/sidplay2/patches/patch-src_audio_wav_WavFile.cpp (limited to 'audio') diff --git a/audio/sidplay2/distinfo b/audio/sidplay2/distinfo index e8aac182fd8..52f79c7b9a5 100644 --- a/audio/sidplay2/distinfo +++ b/audio/sidplay2/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.2 2006/04/20 14:14:15 joerg Exp $ +$NetBSD: distinfo,v 1.3 2011/11/27 19:33:55 joerg Exp $ SHA1 (sidplay-2.0.9.tar.gz) = 2e4589cc59b3d2d37f38b98d7a0a0ba37b82da7a RMD160 (sidplay-2.0.9.tar.gz) = 9d7d2cbcb472ab413093e85827de2c7099782e47 Size (sidplay-2.0.9.tar.gz) = 362140 bytes SHA1 (patch-aa) = 12e236e42f2cbf311e5d9ed7b25c262089f57a27 +SHA1 (patch-src_audio_wav_WavFile.cpp) = a7ef72b68eb3a86bf01537e9da4fba7d44dd280e diff --git a/audio/sidplay2/patches/patch-src_audio_wav_WavFile.cpp b/audio/sidplay2/patches/patch-src_audio_wav_WavFile.cpp new file mode 100644 index 00000000000..1c4457a7528 --- /dev/null +++ b/audio/sidplay2/patches/patch-src_audio_wav_WavFile.cpp @@ -0,0 +1,27 @@ +$NetBSD: patch-src_audio_wav_WavFile.cpp,v 1.1 2011/11/27 19:33:55 joerg Exp $ + +--- src/audio/wav/WavFile.cpp.orig 2011-11-27 01:17:47.000000000 +0000 ++++ src/audio/wav/WavFile.cpp +@@ -65,13 +65,6 @@ + # include + #endif + +-#if defined(WAV_HAVE_IOS_OPENMODE) +- typedef std::ios::openmode openmode; +-#else +- typedef int openmode; +-#endif +- +- + const wavHeader WavFile::defaultWavHdr = { + // ASCII keywords are hex-ified. + {0x52,0x49,0x46,0x46}, {0,0,0,0}, {0x57,0x41,0x56,0x45}, +@@ -132,7 +125,7 @@ void* WavFile::open(AudioConfig &cfg, co + endian_little16(wavHdr.bitsPerSample,bits); + endian_little32(wavHdr.dataChunkLen,0); + +- openmode createAttr = std::ios::out; ++ std::ios::openmode createAttr = std::ios::out; + #if defined(WAV_HAVE_IOS_BIN) + createAttr |= std::ios::bin; + #else -- cgit v1.2.3