ports/50967: [patch] ftp/ftptool patch the file lex.c

Serge Gagnon gagnon__s at videotron.ca
Tue Apr 15 10:00:31 UTC 2003


The following reply was made to PR ports/50967; it has been noted by GNATS.

From: Serge Gagnon <gagnon__s at videotron.ca>
To: freebsd-gnats-submit at FreeBSD.org
Cc:  
Subject: Re: ports/50967: [patch] ftp/ftptool patch the file lex.c
Date: Tue, 15 Apr 2003 06:09:22 -0400

 Use this patch instead of the previous one.
 I have added an other patch for the file Makefile because it seems that 
 this port are using editors/textedit to run.
 
 --- ftptool-lex.c.diff begins here ---
 --- lex.c.orig	Tue Apr 15 01:01:01 2003
 +++ lex.c	Tue Apr 15 01:01:11 2003
 @@ -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 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;
 --- ftptool-lex.c.diff ends here ---
 
 --- Makefile.diff begins here ---
 --- Makefile.orig	Tue Apr 15 05:48:25 2003
 +++ Makefile	Tue Apr 15 05:55:50 2003
 @@ -17,6 +17,7 @@
  COMMENT=	Graphic ftp shell based on xview
  
  LIB_DEPENDS=	xview.3:${PORTSDIR}/x11-toolkits/xview
 +RUN_DEPENDS=	${X11BASE}/bin/textedit:${PORTSDIR}/editors/textedit
  
  USE_IMAKE=	yes
  WRKSRC=		${WRKDIR}/Ftptool4.6
 --- Makefile.diff ends here ---
 
 



More information about the freebsd-ports-bugs mailing list