ports/50967: [patch] ftp/ftptool patch the file lex.c
Serge Gagnon
gagnon__s at videotron.ca
Tue Apr 15 05:00:28 UTC 2003
>Number: 50967
>Category: ports
>Synopsis: [patch] ftp/ftptool patch the file lex.c
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 14 22:00:26 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Serge Gagnon
>Release: FreeBSD 4.8-STABLE i386
>Organization:
me
>Environment:
System: FreeBSD quenix.dyndns.org 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat Apr 5 09:39:35 EST 2003 serge at quenix.dyndns.org:/usr/obj/usr/src/sys/OCEAN2 i386
>Description:
- patch lex.c
>How-To-Repeat:
>Fix:
--- ftptool-lex.c.diff begins here ---
--- lex.c.orig Tue Apr 15 01:01:01 2003
+++ lex.c Tue Apr 15 01:01:11 2003
@@ -1,4 +1,5 @@
-# include "stdio.h"
+#include <stdio.h>
+#include <unistd.h>
# define U(x) x
# define NLSTATE yyprevious=YYNEWLINE
# define BEGIN yybgin = yysvec + 1 +
@@ -17,7 +18,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;
--- ftptool-lex.c.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list