aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/slingshot/files
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2003-07-04 12:32:52 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2003-07-04 12:32:52 +0000
commit2b6e0c42afe448def83a0cfd06dad38b01a1f4eb (patch)
tree18ea42eaa362adadb6a2e66e3719996125d4b053 /x11-toolkits/slingshot/files
parente9f4be875206de30e024434c14d4bd8c0a631e89 (diff)
Notes
Diffstat (limited to 'x11-toolkits/slingshot/files')
-rw-r--r--x11-toolkits/slingshot/files/patch-lex.yy.c17
1 files changed, 17 insertions, 0 deletions
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;