summaryrefslogtreecommitdiff
path: root/games/openmortal/patches
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-01-18 18:43:05 +0000
committerkristerw <kristerw@pkgsrc.org>2004-01-18 18:43:05 +0000
commitee41e9362e8d0fed123aea7fbb6cf95757860bef (patch)
tree59e60a0790eed4fe903ad653556cde34ff386641 /games/openmortal/patches
parent36264b1556f07dc5b4de83ea97b220fda8518d1b (diff)
downloadpkgsrc-ee41e9362e8d0fed123aea7fbb6cf95757860bef.tar.gz
Make this package compile when using gcc 2.95.
Diffstat (limited to 'games/openmortal/patches')
-rw-r--r--games/openmortal/patches/patch-aa16
1 files changed, 16 insertions, 0 deletions
diff --git a/games/openmortal/patches/patch-aa b/games/openmortal/patches/patch-aa
new file mode 100644
index 00000000000..e68a53fe988
--- /dev/null
+++ b/games/openmortal/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1 2004/01/18 18:43:05 kristerw Exp $
+
+--- src/State.cpp.orig Sun Jan 18 19:18:52 2004
++++ src/State.cpp Sun Jan 18 19:22:52 2004
+@@ -110,7 +110,11 @@
+ void SState::Save()
+ {
+ std::string sFilename = GetConfigFilename();
++#if defined(__GNUC__) && (__GNUC__ <= 2)
++ std::ofstream oStream( sFilename.c_str(), ios::out | ios::trunc );
++#else
+ std::ofstream oStream( sFilename.c_str(), std::ios_base::out | std::ios_base::trunc );
++#endif
+ if ( oStream.rdstate() & std::ios::failbit )
+ {
+ debug( "Unable to open config file: %s\n", sFilename.c_str() );