Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 1995 23:14:18 -0500 (EST)
From:      Chuck Robey <chuckr@Glue.umd.edu>
To:        Amancio Hasty <hasty@star-gate.com>
Cc:        Mike Digdon <digdon@Snoopy.UCIS.Dal.Ca>, freebsd-hackers@FreeBSD.org
Subject:   Re: gcc include files 
Message-ID:  <Pine.SUN.3.91.950321231322.10430D-100000@mocha.eng.umd.edu>
In-Reply-To: <199503211837.SAA02924@star-gate.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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!
----------------------------+-----------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.950321231322.10430D-100000>