summaryrefslogtreecommitdiff
path: root/audio/HVSC-Update
diff options
context:
space:
mode:
authorAnders Nordby <anders@FreeBSD.org>2005-02-27 14:22:08 +0000
committerAnders Nordby <anders@FreeBSD.org>2005-02-27 14:22:08 +0000
commit0c13fa71e55117133e5718d0195f5d374c6f747e (patch)
treee724b976549b80cfd15fa6f180dbf3de68478ed3 /audio/HVSC-Update
parent- Fix security vulnerability (buffer overflow) (diff)
Unbreak build for FreeBSD >= 5.x.
Notes
Notes: svn path=/head/; revision=129889
Diffstat (limited to 'audio/HVSC-Update')
-rw-r--r--audio/HVSC-Update/Makefile4
-rw-r--r--audio/HVSC-Update/files/patch-src-TextFile.h23
-rw-r--r--audio/HVSC-Update/files/patch-src-include-fformat.h16
3 files changed, 39 insertions, 4 deletions
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 <bsd.port.pre.mk>
-.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 <ctype.h>
+ #include <fstream.h>
+-#include <iostream.h>
++#include <iostream>
++using namespace std;
+ #include <string.h>
+ #if defined(HAVE_STRSTREA_H)
+ #include <strstrea.h>
+ #else
+-#include <strstream.h>
++#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 <strstrea.h>
+ #else
+- #include <strstream.h>
++ #include <strstream>
++
++ using std::strstreambuf;
++ using std::istrstream;
++ using std::ostrstream;
++ using std::strstream;
+ #endif
+
+ #if defined(HAVE_STRCASECMP)