[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/51345: editors/ex-20040103 dumps core on port-sparc64
The following reply was made to PR pkg/51345; it has been noted by GNATS.
From: David Holland <dholland-pbugs%netbsd.org@localhost>
Subject: Re: pkg/51345: editors/ex-20040103 dumps core on port-sparc64
Date: Fri, 22 Jul 2016 03:08:53 +0000
On Tue, Jul 19, 2016 at 07:35:01AM +0000, Martin Husemann wrote:
> The issue is the declaration of "ospeed". In ex.h it is declared as:
> #ifdef POSIX_1
> extern speed_t ospeed; /* Output speed (from gtty) */
> extern short ospeed; /* Output speed (from gtty) */
> but NetBSD wants it as extern short ospeed;
> So alignment mismatches, and we crash.
It should be getting it from termcap.h, although ex is Interesting in
a number of ways and that might not be possible.
> I don't know if the ifdef is correct, so this might be a lib bug in NetBSD
> as well.
I don't know. The point of speed_t is to hold terminal speeds, but
that's in termios and the global ospeed is from termcap...
David A. Holland
Main Index |
Thread Index |