From owner-freebsd-current Wed Mar 26 02:13:40 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id CAA00925 for current-outgoing; Wed, 26 Mar 1997 02:13:40 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id CAA00918 for ; Wed, 26 Mar 1997 02:13:34 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id VAA05821; Wed, 26 Mar 1997 21:11:33 +1100 Date: Wed, 26 Mar 1997 21:11:33 +1100 From: Bruce Evans Message-Id: <199703261011.VAA05821@godzilla.zeta.org.au> To: current@FreeBSD.org, helbig@MX.BA-Stuttgart.De Subject: Re: make world fails on libmytinfo Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >Here is a patch fixing it. I consider clauses like "__FreeBSD != 2__" harmful. >For those dependencies we have CVS, don't we. But there might be a reason >for it, so I left them in. > /* for quit.c */ > extern int sys_nerr; >! #if __FreeBSD__ != 2 && __FreeBSD__ != 3 > extern char *sys_errlist[]; > #endif > extern char *prg_name; It is just harmful. Const'ness of sys_errlist has nothing to do with FreeBSD. BTW, sys_nerr is also const in FreeBSD, but the type mismatch is only warned about if gcc is invoked with -pedantic. Bruce