Subject: 2000/1/22 build error in domestic/usr.bin/telnet
To: None <current-users@netbsd.org>
From: Dave Huang <khym@bga.com>
List: current-users
Date: 01/22/2000 17:51:58
Since the recent change to errno.h, the build of domestic/usr.bin/telnet
fails with:

cc -O2 -pipe -mcpu=ev56 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer -arith -Werror -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -Dunix
-DENV_HACK -I/us r/src.local/usr.bin/telnet -DAUTHENTICATION
-DENCRYPTION -DKRB4 -DIPSEC -DINET6
-I/usr/src.local/usr.bin/telnet/../../domestic/lib
-I/usr/src.local/usr.bin/telnet/../../lib -c
/usr/src.local/usr.bin/telnet/../../domestic/usr.bin/telnet/commands.c
cc1: warnings being treated as errors
In file included from
/usr/src.local/usr.bin/telnet/../../domestic/usr.bin/telnet/commands.c:111:
/usr/src.local/usr.bin/telnet/../../domestic/usr.bin/telnet/externs.h:118: warning: function declaration isn't a prototype

Dunno if it's the best thing to do, but this works :)

--- /usr/src/domestic/usr.bin/telnet/externs.h  Mon Jul 12 06:03:18 1999
+++ externs.h   Sat Jan 22 17:42:31 2000
@@ -114,10 +114,6 @@

 #define        SUBBUFSIZE      256

-#ifndef CRAY
-extern int errno;              /* outside this world */
-#endif /* !CRAY */
-
 #include <sys/cdefs.h>
 #define P __P

-- 
Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 24 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++