From owner-svn-ports-head@freebsd.org Mon Feb 6 18:29:24 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84DE8CD334D; Mon, 6 Feb 2017 18:29:24 +0000 (UTC) (envelope-from nivit@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2CEC1222; Mon, 6 Feb 2017 18:29:24 +0000 (UTC) (envelope-from nivit@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v16ITN38001227; Mon, 6 Feb 2017 18:29:23 GMT (envelope-from nivit@FreeBSD.org) Received: (from nivit@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v16ITN9E001225; Mon, 6 Feb 2017 18:29:23 GMT (envelope-from nivit@FreeBSD.org) Message-Id: <201702061829.v16ITN9E001225@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: nivit set sender to nivit@FreeBSD.org using -f From: Nicola Vitale Date: Mon, 6 Feb 2017 18:29:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r433507 - head/graphics/gle-graphics/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2017 18:29:24 -0000 Author: nivit Date: Mon Feb 6 18:29:22 2017 New Revision: 433507 URL: https://svnweb.freebsd.org/changeset/ports/433507 Log: - Fix build with gcc 5 PR: 216806 Submitted by: jbeich Added: head/graphics/gle-graphics/files/patch-src_manip_all.h (contents, props changed) head/graphics/gle-graphics/files/patch-src_manip_filemenu.cpp (contents, props changed) Added: head/graphics/gle-graphics/files/patch-src_manip_all.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gle-graphics/files/patch-src_manip_all.h Mon Feb 6 18:29:22 2017 (r433507) @@ -0,0 +1,11 @@ +--- src/manip/all.h.orig 2010-12-26 17:07:31 UTC ++++ src/manip/all.h +@@ -143,7 +143,7 @@ typedef char (*(*TOKENS)[500]); + typedef unsigned char uchar; + typedef double dbl; + char *unquote(char *s); +-const char *gledir(const char *s); ++string gledir(const char *s); + int set_missing(int x, int y); + double vcell(int x, int y); + void var_find_rc(int *idx, int *var, int *nd, int c); Added: head/graphics/gle-graphics/files/patch-src_manip_filemenu.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/gle-graphics/files/patch-src_manip_filemenu.cpp Mon Feb 6 18:29:22 2017 (r433507) @@ -0,0 +1,17 @@ +--- src/manip/filemenu.cpp.orig 2010-06-14 15:34:39 UTC ++++ src/manip/filemenu.cpp +@@ -404,10 +404,12 @@ void do_help(const char *k1, const char + gotoxy(1,1); + wprintf("Manip help on topic {%s}, sub topic {%s}",k1,k2); + scr_menubg(); +- hfile = fopen(gledir(hfilename),"r"); ++ string fname = gledir(hfilename); ++ hfilename = fname.c_str(); ++ hfile = fopen(fname.c_str(),"r"); + if (hfile==NULL) { + gotoxy(1,3); +- wprintf("Unable to open {%s} \n",gledir(hfilename)); ++ wprintf("Unable to open {%s} \n",hfilename); + text_inkey(); + return; + }