1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

Fix build errors with latest bison

This commit is contained in:
Tilman Keskinoz 2012-02-21 13:16:58 +00:00
parent 6ca710cb27
commit f643369b0c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=291993
3 changed files with 40 additions and 2 deletions

View File

@ -18,8 +18,6 @@ COMMENT= A tool that allows you to create, manipulate and study graphs
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN= does not compile
USE_BZIP2= yes
USE_GNOME= gtk20
USE_BISON= build

View File

@ -0,0 +1,20 @@
--- src/gt-bison.y.orig 2012-02-21 14:11:30.000000000 +0100
+++ src/gt-bison.y 2012-02-21 14:11:53.000000000 +0100
@@ -18,7 +18,7 @@
extern char *yy_gt_text;
-int yy_gt_error (char *s);
+int yy_gt_error (const char *s);
int yy_gt_lex (void);
%}
@@ -132,7 +132,7 @@
%%
-int yy_gt_error (char *s)
+int yy_gt_error (const char *s)
{
fprintf (stderr, "gt-parse: %s in line %i, at symbol \"%s\"\n",
s, gt_lineno, yy_gt_text);

View File

@ -0,0 +1,20 @@
--- src/lang-bison.y.orig 2012-02-21 14:12:06.000000000 +0100
+++ src/lang-bison.y 2012-02-21 14:12:27.000000000 +0100
@@ -15,7 +15,7 @@
std::stack<PhraseBlock *> pbs;
-int yy_lang_error (char *s);
+int yy_lang_error (const char *s);
int yy_lang_lex (void);
%}
@@ -121,7 +121,7 @@
extern char *yy_lang_text;
-int yy_lang_error (char *s)
+int yy_lang_error (const char *s)
{
fprintf (stderr, "lang-parse: %s in line %i, at symbol \"%s\"\n",
s, lang_lineno, yy_lang_text);