summaryrefslogtreecommitdiff
path: root/games/openmortal
diff options
context:
space:
mode:
authorkristerw <kristerw>2004-01-18 18:43:05 +0000
committerkristerw <kristerw>2004-01-18 18:43:05 +0000
commit8c2a07c1f7e4ab104ce78ea808fcd543bc2ebe45 (patch)
tree59e60a0790eed4fe903ad653556cde34ff386641 /games/openmortal
parent000f450b077c4c539d5e2ca8db7a5e05b1e969a2 (diff)
downloadpkgsrc-8c2a07c1f7e4ab104ce78ea808fcd543bc2ebe45.tar.gz
Make this package compile when using gcc 2.95.
Diffstat (limited to 'games/openmortal')
-rw-r--r--games/openmortal/distinfo3
-rw-r--r--games/openmortal/patches/patch-aa16
2 files changed, 18 insertions, 1 deletions
diff --git a/games/openmortal/distinfo b/games/openmortal/distinfo
index e39e284c5de..972585e7efb 100644
--- a/games/openmortal/distinfo
+++ b/games/openmortal/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.2 2004/01/08 15:24:14 xtraeme Exp $
+$NetBSD: distinfo,v 1.3 2004/01/18 18:43:05 kristerw Exp $
SHA1 (openmortal-0.4.tar.bz2) = c659e1ea72e45a81e21d14011556f613559e9945
Size (openmortal-0.4.tar.bz2) = 45431661 bytes
+SHA1 (patch-aa) = 4a4d0090a75cc48c5db8f6b215590cb0b48bb81f
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() );