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>
This commit is contained in:
parent
e9f4be8752
commit
2b6e0c42af
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84200
2 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
17
x11-toolkits/slingshot/files/patch-lex.yy.c
Normal file
17
x11-toolkits/slingshot/files/patch-lex.yy.c
Normal file
|
@ -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;
|
Loading…
Reference in a new issue