diff options
author | bde <bde@FreeBSD.org> | 2002-02-02 09:32:09 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-02-02 09:32:09 +0000 |
commit | beb5f651fbe8322860b07ac8d43b97f95bb29b60 (patch) | |
tree | e9ddaa119e3303f648273a70bc1165a0fca83f5d /games/backgammon | |
parent | e2889aca775d8935b9988eb9268a1f59ded3e519 (diff) | |
download | FreeBSD-src-beb5f651fbe8322860b07ac8d43b97f95bb29b60.zip FreeBSD-src-beb5f651fbe8322860b07ac8d43b97f95bb29b60.tar.gz |
Don't declare our own common version of the library variable `ospeed'
without even getting its type correct. Include <termcap.h> to get its
declaration. Our initialization of it is still dubious, but it agrees
with ncurses' documentation of it (none) and with ncurses' recently
fixed internals for it (old speeds from <sys/ttydev.h>) and with the
4.4Lite documentation for it.
Diffstat (limited to 'games/backgammon')
-rw-r--r-- | games/backgammon/backgammon/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/backgammon/backgammon/main.c b/games/backgammon/backgammon/main.c index fc88b65..fc2110f 100644 --- a/games/backgammon/backgammon/main.c +++ b/games/backgammon/backgammon/main.c @@ -46,6 +46,7 @@ static const char rcsid[] = #endif /* not lint */ #include <stdio.h> +#include <termcap.h> #include <unistd.h> #include <string.h> #include <stdlib.h> @@ -57,7 +58,6 @@ static const char rcsid[] = extern const char *const instr[]; /* text of instructions */ extern const char *const message[]; /* update message */ -char ospeed; /* tty output speed */ const char *helpm[] = { /* help message */ "Enter a space or newline to roll, or", |