Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2001 14:32:30 -0700 (PDT)
From:      Evan Sarmiento <kaworu@sektor7.ath.cx>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/29934: [PATCH] scsh fails to compile
Message-ID:  <200108212132.f7LLWUu30199@freefall.freebsd.org>

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

>Number:         29934
>Category:       ports
>Synopsis:       [PATCH] scsh fails to compile
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 21 14:40:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Evan Sarmiento
>Release:        5.0
>Organization:
>Environment:
FreeBSD teqnix.sekt7.org 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Sun Aug 19 08:53:54 EDT 2001 kaworu@teqnix.sekt7.org:/usr/src/sys/compile/TEQNIX i386
>Description:
When compiling, gcc complains because fileno(fs) = fd should be fd = fileno(fs)


>How-To-Repeat:
compile scsh
how to apply:

cd /usr/ports/shells/scsh/work/scsh-0.5.2/scsh/machine
patch -p < patch

>Fix:


*** stdio_dep.old       Tue Aug 21 17:27:50 2001
--- stdio_dep.c Tue Aug 21 17:28:15 2001
***************
*** 61,67 ****
  
  void setfileno(FILE *fs, int fd)
  {
!   fileno(fs) = fd;
  }
  
  int fbufcount(FILE* fs)
--- 61,67 ----
  
  void setfileno(FILE *fs, int fd)
  {
!   fd = fileno(fs); 
  }
  
  int fbufcount(FILE* fs)

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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108212132.f7LLWUu30199>