From 0c13fa71e55117133e5718d0195f5d374c6f747e Mon Sep 17 00:00:00 2001 From: Anders Nordby Date: Sun, 27 Feb 2005 14:22:08 +0000 Subject: [PATCH] Unbreak build for FreeBSD >= 5.x. --- audio/HVSC-Update/Makefile | 4 ---- audio/HVSC-Update/files/patch-src-TextFile.h | 23 +++++++++++++++++++ .../files/patch-src-include-fformat.h | 16 +++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 audio/HVSC-Update/files/patch-src-TextFile.h create mode 100644 audio/HVSC-Update/files/patch-src-include-fformat.h diff --git a/audio/HVSC-Update/Makefile b/audio/HVSC-Update/Makefile index 67b9240c217f..c235c9ea58d5 100644 --- a/audio/HVSC-Update/Makefile +++ b/audio/HVSC-Update/Makefile @@ -27,10 +27,6 @@ DOCS= HVSC_Update.txt SID_file_format.txt .include -.if ${OSVERSION} >= 502112 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/Update ${PREFIX}/bin/HVSC-Update .if !defined(NOPORTDOCS) diff --git a/audio/HVSC-Update/files/patch-src-TextFile.h b/audio/HVSC-Update/files/patch-src-TextFile.h new file mode 100644 index 000000000000..2d8fcfc01347 --- /dev/null +++ b/audio/HVSC-Update/files/patch-src-TextFile.h @@ -0,0 +1,23 @@ +--- src/TextFile.h.orig Fri Mar 29 19:35:26 2002 ++++ src/TextFile.h Sun Feb 27 15:03:16 2005 +@@ -10,12 +10,18 @@ + #endif + #include + #include +-#include ++#include ++using namespace std; + #include + #if defined(HAVE_STRSTREA_H) + #include + #else +-#include ++#include "strstream" ++ ++using std::strstreambuf; ++using std::istrstream; ++using std::ostrstream; ++using std::strstream; + #endif + + #include "fformat.h" // strnicmp stuff diff --git a/audio/HVSC-Update/files/patch-src-include-fformat.h b/audio/HVSC-Update/files/patch-src-include-fformat.h new file mode 100644 index 000000000000..3d58eb4c530e --- /dev/null +++ b/audio/HVSC-Update/files/patch-src-include-fformat.h @@ -0,0 +1,16 @@ +--- src/include/fformat.h.orig Fri Mar 29 19:35:26 2002 ++++ src/include/fformat.h Sun Feb 27 13:52:05 2005 +@@ -13,7 +13,12 @@ + #if defined(HAVE_STRSTREA_H) + #include + #else +- #include ++ #include ++ ++ using std::strstreambuf; ++ using std::istrstream; ++ using std::ostrstream; ++ using std::strstream; + #endif + + #if defined(HAVE_STRCASECMP)