Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2003 12:18:36 -0400
From:      Serge Gagnon <gagnon__s@videotron.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/50997: [patch] x11-toolkits/slingshot
Message-ID:  <E195T8m-0007b9-00@quenix.dyndns.org>
Resent-Message-ID: <200304151610.h3FGA1bJ051311@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         50997
>Category:       ports
>Synopsis:       [patch] x11-toolkits/slingshot
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 15 09:10:00 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@quenix.dyndns.org:/usr/obj/usr/src/sys/OCEAN2 i386


>Description:
	- patch the file example/tree/lex.yy.c so the port will build

>How-To-Repeat:

>Fix:


--- patch-lex.yy.c begins here ---
--- examples/tree/lex.yy.c.orig	Tue Apr 15 11:56:25 2003
+++ examples/tree/lex.yy.c	Tue Apr 15 11:57:27 2003
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <unistd.h>
 # define U(x) x
 # define NLSTATE yyprevious=YYNEWLINE
 # define BEGIN yybgin = yysvec + 1 +
@@ -66,7 +67,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-lex.yy.c ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E195T8m-0007b9-00>