From owner-freebsd-ports Fri Oct 25 4:40: 9 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBD5837B401 for ; Fri, 25 Oct 2002 04:40:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F1AE43E4A for ; Fri, 25 Oct 2002 04:40:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9PBe2x3094136 for ; Fri, 25 Oct 2002 04:40:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9PBe1xq094135; Fri, 25 Oct 2002 04:40:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C998337B404; Fri, 25 Oct 2002 04:36:45 -0700 (PDT) Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB10643E6E; Fri, 25 Oct 2002 04:36:44 -0700 (PDT) (envelope-from edwin@mavetju.org) Received: from k7.mavetju (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 78F492B966; Fri, 25 Oct 2002 13:36:42 +0200 (CEST) Received: by k7.mavetju (Postfix, from userid 1001) id 22D116A712B; Fri, 25 Oct 2002 21:36:38 +1000 (EST) Message-Id: <20021025113638.22D116A712B@k7.mavetju> Date: Fri, 25 Oct 2002 21:36:38 +1000 (EST) From: Edwin Groothuis Reply-To: Edwin Groothuis To: FreeBSD-gnats-submit@FreeBSD.org Cc: pat@FreeBSD.org, shmur@softhome.net, djtansey@bigfoot.com X-Send-Pr-Version: 3.113 Subject: ports/44455: [patch] Make games/xblackjack working under -current Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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 +#include #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< #include "SFont.h" #include +#include 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