Bug 53150 - [Patch] unbroke port: lang/sr fix stdio error
Summary: [Patch] unbroke port: lang/sr fix stdio error
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sergey A. Osokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-10 16:40 UTC by Serge Gagnon
Modified: 2003-06-10 17:52 UTC (History)
0 users

See Also:


Attachments
patch-sr-stdio (645 bytes, text/plain)
2003-06-10 16:40 UTC, Serge Gagnon
no flags Details
patch-lexed-srlatex.c (520 bytes, text/plain)
2003-06-10 16:40 UTC, Serge Gagnon
no flags Details
file.diff (554 bytes, patch)
2003-06-10 16:40 UTC, Serge Gagnon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!