openbsd-ports/games/slash-em/patches/patch-sys_share_unixtty_c
tobiasu a1fd2070fb Fix crashing build on sparc
makedefs: the strict alignment gods demand time_t
fixed format strings that could anger the same gods
ospeed: homegrown termcap.h, sync ospeed symbol size

Play-tested on sparc
2015-03-27 11:04:28 +00:00

16 lines
609 B
Plaintext

$OpenBSD: patch-sys_share_unixtty_c,v 1.1 2015/03/27 11:04:28 tobiasu Exp $
--- sys/share/unixtty.c.orig Mon Mar 23 15:53:04 2015
+++ sys/share/unixtty.c Mon Mar 23 15:54:13 2015
@@ -130,9 +130,9 @@ struct tchars inittyb2, curttyb2;
# ifndef LINT
extern /* it is defined in libtermlib (libtermcap) */
# endif
- short ospeed; /* terminal baudrate; set by gettty */
+ int ospeed; /* terminal baudrate; set by gettty */
#else
-short ospeed = 0; /* gets around "not defined" error message */
+int ospeed = 0; /* gets around "not defined" error message */
#endif
#if defined(POSIX_TYPES) && defined(BSD)