1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/x11-toolkits/slingshot/files/patch-lex.yy.c
Daichi GOTO 2b6e0c42af 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>
2003-07-04 12:32:52 +00:00

18 lines
497 B
C

--- 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;