Subject: bin/914: undeclared errno in src/usr.bin/comm/comm.c
To: None <gnats-admin@NetBSD.ORG>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 03/27/1995 04:50:06
>Number:         914
>Category:       bin
>Synopsis:       undeclared errno in src/usr.bin/comm/comm.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 27 04:50:05 1995
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 26-03-95
>Environment:
	
System: NetBSD arresum 1.0A NetBSD 1.0A (VEEGO) #103: Mon Mar 20 11:55:32 MET 1995 root@arresum:/src/sys/arch/amiga/compile/VEEGO amiga


>Description:
	errno is undeclared in src/usr.bin/comm/comm.c
>How-To-Repeat:
	make clean; make
>Fix:
	insert: extern int errno;
	or #include <errno.h>


*** src/usr.bin/comm/comm.c-orig	Sun Mar 26 13:24:16 1995
--- src/usr.bin/comm/comm.c	Mon Mar 27 13:50:22 1995
***************
*** 57,62 ****
--- 57,63 ----
  #include <locale.h>
  #include <unistd.h>
  #include <err.h>
+ #include <errno.h>
  
  #define	MAXLINELEN	(LINE_MAX + 1)
  
>Audit-Trail:
>Unformatted: