diff --git a/audio/libsidplay/patches/patch-src_smart_h b/audio/libsidplay/patches/patch-src_smart_h new file mode 100644 index 00000000000..841ee7934f0 --- /dev/null +++ b/audio/libsidplay/patches/patch-src_smart_h @@ -0,0 +1,27 @@ +$OpenBSD: patch-src_smart_h,v 1.1 2010/05/11 21:19:25 espie Exp $ +--- src/smart.h.orig Tue May 11 23:07:35 2010 ++++ src/smart.h Tue May 11 23:16:56 2010 +@@ -211,16 +211,16 @@ class smartPtr : public smartPtrBase + { + if ( bufferLen >= 1 ) + { +- pBufCurrent = ( bufBegin = buffer ); +- bufEnd = bufBegin + bufferLen; +- bufLen = bufferLen; +- status = true; ++ this->pBufCurrent = ( this->bufBegin = buffer ); ++ this->bufEnd = this->bufBegin + bufferLen; ++ this->bufLen = bufferLen; ++ this->status = true; + } + else + { +- pBufCurrent = bufBegin = bufEnd = 0; +- bufLen = 0; +- status = false; ++ this->pBufCurrent = this->bufBegin = this->bufEnd = 0; ++ this->bufLen = 0; ++ this->status = false; + } + } + };