Subject: bin/5539: csh fails to build
To: None <gnats-bugs@gnats.netbsd.org>
From: Stefan Grefen <grefen@hprc.tandem.com>
List: netbsd-bugs
Date: 06/04/1998 22:23:11
>Number:         5539
>Category:       bin
>Synopsis:       csh printf.c fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun  4 13:50:01 1998
>Last-Modified:
>Originator:     Stefan Grefen
>Organization:
Stefan Grefen                                Tandem Computers Europe Inc.
grefen@hprc.tandem.com                       High Performance Research Center
 --- Hacking's just another word for nothing left to kludge. ---
>Release:        Jun 03 98 <NetBSD-current source date>
>Environment:
	
System: NetBSD hrriss 1.3B NetBSD 1.3B (HRRISS) #7: Wed Feb 11 18:47:17 GMT 1998 grefen@hrriss:/usr/src/sys/arch/i386/compile/HRRISS i386


>Description:
building csh's printf.c fails with mutilple warnings.
	
>How-To-Repeat:
    make
	
>Fix:
*** printf.c.org        Thu Jun  4 22:21:07 1998
--- printf.c    Thu Jun  4 22:21:23 1998
***************
*** 60,65 ****
--- 60,66 ----
  #include <stdio.h>
  #endif
  #include <stdlib.h>
+ #include <unistd.h>
  #include <string.h>

  /*
***************
*** 100,113 ****

  static char **gargv;

  int
  #ifdef BUILTIN
! progprintf(argc, argv)
  #else
  main(argc, argv)
- #endif
        int argc;
        char *argv[];
  {
        extern int optind;
        static char *skip1, *skip2;
--- 101,115 ----

  static char **gargv;

+ int progprintf(int argc, char *argv[]);
  int
  #ifdef BUILTIN
! progprintf(int argc, char *argv[])
  #else
  main(argc, argv)
        int argc;
        char *argv[];
+ #endif
  {
        extern int optind;
        static char *skip1, *skip2;

>Audit-Trail:
>Unformatted: