summaryrefslogtreecommitdiff
path: root/emulators/gpsim-devel/patches/patch-src_processor.cc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-12-19 15:58:40 +0000
committerwiz <wiz@pkgsrc.org>2011-12-19 15:58:40 +0000
commit76a6bf7466fe39fdf05420ec62fb481ef51a4833 (patch)
tree879d10f38c19d6d1b01883d9ae4685184b50198f /emulators/gpsim-devel/patches/patch-src_processor.cc
parentfa4ab6f99440a2c4991c38199ba51adaf0754a44 (diff)
downloadpkgsrc-76a6bf7466fe39fdf05420ec62fb481ef51a4833.tar.gz
Fix build with gcc-4.5.
Diffstat (limited to 'emulators/gpsim-devel/patches/patch-src_processor.cc')
-rw-r--r--emulators/gpsim-devel/patches/patch-src_processor.cc35
1 files changed, 35 insertions, 0 deletions
diff --git a/emulators/gpsim-devel/patches/patch-src_processor.cc b/emulators/gpsim-devel/patches/patch-src_processor.cc
new file mode 100644
index 00000000000..c69e7c00b54
--- /dev/null
+++ b/emulators/gpsim-devel/patches/patch-src_processor.cc
@@ -0,0 +1,35 @@
+$NetBSD: patch-src_processor.cc,v 1.1 2011/12/19 15:58:40 wiz Exp $
+
+--- src/processor.cc.orig 2005-09-01 10:17:59.000000000 +0000
++++ src/processor.cc
+@@ -36,6 +36,7 @@ Boston, MA 02111-1307, USA. */
+ #include <iostream>
+ #include <iomanip>
+ #include <string>
++#include <typeinfo>
+
+ #include "../config.h"
+ #include "gpsim_def.h"
+@@ -625,11 +626,11 @@ void Processor::read_src_files(void)
+
+ //-------------------------------------------------------------------
+ //
+-// processor -- list
++// processor -- plist
+ //
+ // Display the contents of either a source or list file
+ //
+-void Processor::list(unsigned int file_id,
++void Processor::plist(unsigned int file_id,
+ unsigned int pc_val,
+ unsigned int start_line,
+ unsigned int end_line)
+@@ -2137,7 +2138,7 @@ void FileContext::ReadSource(void)
+ line_seek = new vector<int>(max_line()+1);
+ pm_address = new vector<int>(max_line()+1);
+
+- std::rewind(fptr);
++ ::rewind(fptr);
+
+ char buf[256],*s;
+ (*line_seek)[0] = 0;