Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 2002 21:36:38 +1000 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        pat@FreeBSD.org, shmur@softhome.net, djtansey@bigfoot.com
Subject:   ports/44455: [patch] Make games/xblackjack working under -current
Message-ID:  <20021025113638.22D116A712B@k7.mavetju>

next in thread | raw e-mail | index | archive | help

>Number:         44455
>Category:       ports
>Synopsis:       [patch] Make games/xblackjack working under -current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 25 04:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Sat Sep 14 10:41:50 EST 2002 edwin@k7.mavetju:/usr/src/sys/compile/k7 i386

>Description:

Make games/pengpong working again under -current with GCC 3.2.x

>How-To-Repeat:

http://bento.freebsd.org/errorlogs/5-full/pengpong-0.3.log

>Fix:

Add these two files to games/pengpong/work:

patch-files.h:
--- files.h	Fri Oct 25 21:22:08 2002
+++ files.h	Fri Oct 25 21:21:48 2002
@@ -1,4 +1,4 @@
-#include <fstream.h>
+#include <fstream>
 
 #ifdef __WIN32__
 	char file_path[50] = "C:\\Program Files\\Pengpong\\";
@@ -17,7 +17,7 @@
 
 void read_config_file()
 {
-	ifstream a_file;
+	std::ifstream a_file;
 	char *temp_string1, *temp_string2;
 	char *temp_config_path;
 	temp_string1 = new char[50];
@@ -75,7 +75,7 @@
 
 void write_config_file()
 {
-	ofstream b_file;
+	std::ofstream b_file;
 	char *temp_config_path;
 	char *temp_config_data;
 	temp_config_data = new char[80];
@@ -90,7 +90,8 @@
 	strcpy(temp_config_path, config_file_path);
 	#endif
 	
-	b_file.open(temp_config_path, ios::trunc);
+	b_file.open(temp_config_path, std::ios::trunc);
+
 	
 	sprintf(temp_config_data, "player1_name:%s\n", adam.name);
 	b_file<<temp_config_data;


patch-SFont.c:
--- SFont.c	Thu Aug 30 04:00:45 2001
+++ SFont.c	Fri Oct 25 21:07:58 2002
@@ -1,6 +1,7 @@
 #include <SDL.h>
 #include "SFont.h"
 #include <string.h>
+#include <stdlib.h>
 
 SFont_FontInfo InternalFont;
 
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021025113638.22D116A712B>