The new ld has apparently uncovered the bug that sio.c and tty.c

both define ttydefchars[] as globals.  This was fixed in 1.1.5
by making ttydefchars[] static like it should always have been.

Submitted by:	Bruce Evans <bde@zeta.org.au>
This commit is contained in:
Nate Williams 1995-03-06 02:50:49 +00:00
parent 9617d8b1f6
commit 7e58dfddc1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6923

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94
* $Id: ttydefaults.h,v 1.5 1994/09/22 19:51:43 ache Exp $
* $Id: ttydefaults.h,v 1.6 1994/10/11 00:16:28 wollman Exp $
*/
/*
@ -88,7 +88,7 @@
* #define TTYDEFCHARS to include an array of default control characters.
*/
#ifdef TTYDEFCHARS
cc_t ttydefchars[NCCS] = {
static cc_t ttydefchars[NCCS] = {
CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT,
_POSIX_VDISABLE, CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT,
CDISCARD, CMIN, CTIME, CSTATUS, _POSIX_VDISABLE