aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/slingshot
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2003-07-04 20:32:52 +0800
committerdaichi <daichi@FreeBSD.org>2003-07-04 20:32:52 +0800
commit8148914e29edca892e39875e9bbeb3586c4863f3 (patch)
treec1edc33cc9e78e3184d51059ef50754ae84a75cd /x11-toolkits/slingshot
parentaf0ec4203fd4aa034eb0003c41dde1c9647fa907 (diff)
downloadfreebsd-ports-gnome-8148914e29edca892e39875e9bbeb3586c4863f3.tar.gz
freebsd-ports-gnome-8148914e29edca892e39875e9bbeb3586c4863f3.tar.zst
freebsd-ports-gnome-8148914e29edca892e39875e9bbeb3586c4863f3.zip
patch x11-toolkits/slingshot:
- patch the file example/tree/lex.yy.c so the port will build PR: 50997 Submitted by: Serge Gagnon <gagnon__s@videotron.ca>
Diffstat (limited to 'x11-toolkits/slingshot')
-rw-r--r--x11-toolkits/slingshot/Makefile2
-rw-r--r--x11-toolkits/slingshot/files/patch-lex.yy.c17
2 files changed, 18 insertions, 1 deletions
diff --git a/x11-toolkits/slingshot/Makefile b/x11-toolkits/slingshot/Makefile
index 247398956574..83d7ab8e8055 100644
--- a/x11-toolkits/slingshot/Makefile
+++ b/x11-toolkits/slingshot/Makefile
@@ -12,7 +12,7 @@ MASTER_SITES= ftp://ftp.x.org/R5contrib/
DISTNAME= SlingShot${PORTVERSION}
EXTRACT_SUFX= .tar.Z
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= gagnon__s@videotron.ca
COMMENT= Supplemental Libraries to extend Xview
LIB_DEPENDS= xview.3:${PORTSDIR}/x11-toolkits/xview
diff --git a/x11-toolkits/slingshot/files/patch-lex.yy.c b/x11-toolkits/slingshot/files/patch-lex.yy.c
new file mode 100644
index 000000000000..f2d202bca317
--- /dev/null
+++ b/x11-toolkits/slingshot/files/patch-lex.yy.c
@@ -0,0 +1,17 @@
+--- examples/tree/lex.yy.c.orig Tue Apr 15 11:56:25 2003
++++ examples/tree/lex.yy.c Tue Apr 15 11:57:27 2003
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <unistd.h>
+ # define U(x) x
+ # define NLSTATE yyprevious=YYNEWLINE
+ # define BEGIN yybgin = yysvec + 1 +
+@@ -66,7 +67,7 @@
+ int yymorfg;
+ extern char *yysptr, yysbuf[];
+ int yytchar;
+-FILE *yyin = {stdin}, *yyout = {stdout};
++FILE *yyin = STDIN_FILENO, *yyout = STDOUT_FILENO;
+ extern int yylineno;
+ struct yysvf {
+ struct yywork *yystoff;