diff options
Diffstat (limited to 'audio/flac/patches/patch-an')
-rw-r--r-- | audio/flac/patches/patch-an | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/audio/flac/patches/patch-an b/audio/flac/patches/patch-an new file mode 100644 index 00000000000..8847fe4267c --- /dev/null +++ b/audio/flac/patches/patch-an @@ -0,0 +1,29 @@ +$NetBSD: patch-an,v 1.1 2004/11/16 12:05:54 sketch Exp $ + +--- ./src/libFLAC++/seekable_stream_encoder.cpp.orig 2004-11-16 11:02:36.626862000 +0000 ++++ ./src/libFLAC++/seekable_stream_encoder.cpp 2004-11-16 11:03:14.289382000 +0000 +@@ -168,7 +168,7 @@ + bool SeekableStream::set_metadata(FLAC::Metadata::Prototype **metadata, unsigned num_blocks) + { + FLAC__ASSERT(is_valid()); +-#ifdef _MSC_VER ++#if (defined _MSC_VER) || (defined __SUNPRO_CC) + // MSVC++ can't handle: + // ::FLAC__StreamMetadata *m[num_blocks]; + // so we do this ugly workaround +@@ -180,7 +180,7 @@ + // we can get away with this since we know the encoder will only correct the is_last flags + m[i] = const_cast< ::FLAC__StreamMetadata*>((::FLAC__StreamMetadata*)metadata[i]); + } +-#ifdef _MSC_VER ++#if (defined _MSC_VER) || (defined __SUNPRO_CC) + // complete the hack + const bool ok = (bool)::FLAC__seekable_stream_encoder_set_metadata(encoder_, m, num_blocks); + delete [] m; +@@ -371,5 +371,5 @@ + return instance->write_callback(buffer, bytes, samples, current_frame); + } + +- }; ++ } + }; |