pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/openmortal Make this package compile when using ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/46a28ab93a7c
branches:  trunk
changeset: 466451:46a28ab93a7c
user:      kristerw <kristerw%pkgsrc.org@localhost>
date:      Sun Jan 18 18:43:05 2004 +0000

description:
Make this package compile when using gcc 2.95.

diffstat:

 games/openmortal/distinfo         |   3 ++-
 games/openmortal/patches/patch-aa |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r f7a7964a8315 -r 46a28ab93a7c games/openmortal/distinfo
--- a/games/openmortal/distinfo Sun Jan 18 17:58:28 2004 +0000
+++ b/games/openmortal/distinfo Sun Jan 18 18:43:05 2004 +0000
@@ -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 -r f7a7964a8315 -r 46a28ab93a7c games/openmortal/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openmortal/patches/patch-aa Sun Jan 18 18:43:05 2004 +0000
@@ -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() );



Home | Main Index | Thread Index | Old Index