Bug 53150

Summary: [Patch] unbroke port: lang/sr fix stdio error
Product: Ports & Packages Reporter: Serge Gagnon <gagnon__s>
Component: Individual Port(s)Assignee: Sergey A. Osokin <osa>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-sr-stdio
none
patch-lexed-srlatex.c
none
file.diff none

Description Serge Gagnon 2003-06-10 16:40:04 UTC
	o Fix stdio error
	o New files:
		patch-lexed-sr.yy.c 
		patch-lexed-srlatex.c 
		patch-lexed-srtex.c
	o Fix pkg-plist by the way

Fix: --- lexed/sr.yy.c.orig	Tue Jun 10 11:40:54 2003
+++ lexed/sr.yy.c	Tue Jun 10 11:42:06 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;
--- patch-lexed-sr.yy.c ends here ---
How-To-Repeat: 
http://bento.freebsd.org/errorlogs/i386-4-full/sr-2.3.1.log
Comment 1 Sergey A. Osokin freebsd_committer freebsd_triage 2003-06-10 17:01:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->osa

I'll handle this.
Comment 2 Sergey A. Osokin freebsd_committer freebsd_triage 2003-06-10 17:51:36 UTC
State Changed
From-To: open->closed

Committed, thanks!