mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-18 08:02:48 +00:00
1ac71ba2f3
Fix compile rts/socket.c under 5.x [2] Submitted by: [1] Serge Gagnon <gagnon__s@videotron.ca> [2] osa PR: 53150 Approved by: fjoe (implicit)
19 lines
521 B
C
19 lines
521 B
C
--- lexed/srlatex.yy.c.orig Tue Jun 10 20:21:01 2003
|
|
+++ lexed/srlatex.yy.c Tue Jun 10 20:22:22 2003
|
|
@@ -1,4 +1,5 @@
|
|
-# include "stdio.h"
|
|
+# include <stdio.h>
|
|
+# include <unistd.h>
|
|
# define U(x) ((x)&0377)
|
|
# 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;
|