From owner-freebsd-hackers Tue Mar 21 20:14:31 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id UAA18928 for hackers-outgoing; Tue, 21 Mar 1995 20:14:31 -0800 Received: from glueserv1.umd.edu (glueserv1.umd.edu [129.2.70.69]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id UAA18920 for ; Tue, 21 Mar 1995 20:14:28 -0800 Received: from mocha.eng.umd.edu (mocha.eng.umd.edu [129.2.98.16]) by glueserv1.umd.edu (8.6.10/8.6.4) with ESMTP id XAA20660; Tue, 21 Mar 1995 23:14:19 -0500 Received: (chuckr@localhost) by mocha.eng.umd.edu (8.6.10/8.6.4) id XAA10639; Tue, 21 Mar 1995 23:14:19 -0500 Date: Tue, 21 Mar 1995 23:14:18 -0500 (EST) From: Chuck Robey To: Amancio Hasty cc: Mike Digdon , freebsd-hackers@FreeBSD.org Subject: Re: gcc include files In-Reply-To: <199503211837.SAA02924@star-gate.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: hackers-owner@FreeBSD.org Precedence: bulk On Tue, 21 Mar 1995, Amancio Hasty wrote: > > I am running 2.0R, which includes gcc 2.6.2. I am trying to compile > > tin-1.22, but I am having a problem. > > > > In line 73 of screen.c, I get an error because sys_errlist is redefined as a > > different type. In stdio.h, line 244, sys_errlist is defined as: > > extern __const char *__const sys_errlist[]; > > > > In screen.c, it is defined as: > > extern char *sys_errlist[]; > > > > Is just the most annoying declaration in BSD4.4, the correct fix > is to use strerror. I never do over here, I just go thru the files > and delete any extern char *sys_errlist[]; > > Amancio This "fix" to go to const breaks more stuff than you can shake a stick at. Is it really necessary? ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 7608 Topton St. | New Carrollton, MD 20784 | I run Journey2 (Freebsd 2.0) and n3lxx (301) 459-2316 | (FreeBSD 1.1.5.1) and am I happy! ----------------------------+-----------------------------------------------