Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2017 18:29:23 +0000 (UTC)
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433507 - head/graphics/gle-graphics/files
Message-ID:  <201702061829.v16ITN9E001225@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
+ 	}



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