summaryrefslogtreecommitdiff
path: root/devel/hp48xgcc/files/patch-class+clld.cc
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2006-02-20 13:18:26 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2006-02-20 13:18:26 +0000
commitf03bedcae2bfbd4ccfccbb7e0106388bb2dbec4b (patch)
treec5712fcaf302723f2019d0d5df7e9ff55f1b7520 /devel/hp48xgcc/files/patch-class+clld.cc
parent- Fix problem with ancient make. (diff)
Add HP48-xgcc 1.0.2, GNU C cross-compiler for HP48 calculators.
Now one step closer porting BSD on my HP48GX. ;-)
Notes
Notes: svn path=/head/; revision=156493
Diffstat (limited to 'devel/hp48xgcc/files/patch-class+clld.cc')
-rw-r--r--devel/hp48xgcc/files/patch-class+clld.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/devel/hp48xgcc/files/patch-class+clld.cc b/devel/hp48xgcc/files/patch-class+clld.cc
new file mode 100644
index 000000000000..fe400e0505b0
--- /dev/null
+++ b/devel/hp48xgcc/files/patch-class+clld.cc
@@ -0,0 +1,29 @@
+--- class/clld.cc 3 Nov 2004 06:57:51 -0000 1.1
++++ class/clld.cc 4 Nov 2004 10:58:04 -0000 1.2
+@@ -130,7 +130,7 @@
+ BIstream f;
+ f.open(name, ios::in | ios::binary);
+ #else
+- ifstream f(name, ios::in | ios::bin);
++ ifstream f(name, ios::in | ios::binary);
+ #endif
+ if (f.fail()) {
+ if (!library)
+@@ -332,7 +332,7 @@
+ BOstream shl_stream;
+ shl_stream.open ( shl_name, ios::out | ios::bin | ios::trunc );
+ #else
+- ofstream shl_stream(shl_name, ios::out | ios::bin | ios::trunc );
++ ofstream shl_stream(shl_name, ios::out | ios::binary | ios::trunc );
+ #endif
+ if (shl_stream.fail()) {
+ cerr << "ERROR: unable to open file '"+shl_name+"' for writing\n";
+@@ -528,7 +528,7 @@
+ BOstream dst_stream;
+ dst_stream.open (bin_name, ios::out | ios::bin | ios::trunc );
+ #else
+- ofstream dst_stream(bin_name, ios::out | ios::bin | ios::trunc );
++ ofstream dst_stream(bin_name, ios::out | ios::binary | ios::trunc );
+ #endif
+ if (dst_stream.fail()) {
+ cerr << "ERROR: unable to open file '"+bin_name+"' for writing\n";