summaryrefslogtreecommitdiff
path: root/ftp/ftptool/files/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/ftptool/files/lex.c')
-rw-r--r--ftp/ftptool/files/lex.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ftp/ftptool/files/lex.c b/ftp/ftptool/files/lex.c
index 86c1126b57a6..76dfd4ba0912 100644
--- a/ftp/ftptool/files/lex.c
+++ b/ftp/ftptool/files/lex.c
@@ -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 yyleng; extern char yytext[];
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;