diff options
author | bde <bde@FreeBSD.org> | 2002-02-02 09:37:20 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-02-02 09:37:20 +0000 |
commit | 96287e14a7b6fe7cc710a89afbf787f0744772ff (patch) | |
tree | bee15c8898f87de947075796778c911ff5243568 /games/backgammon | |
parent | beb5f651fbe8322860b07ac8d43b97f95bb29b60 (diff) | |
download | FreeBSD-src-96287e14a7b6fe7cc710a89afbf787f0744772ff.zip FreeBSD-src-96287e14a7b6fe7cc710a89afbf787f0744772ff.tar.gz |
Don't declare 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/teachgammon/teach.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/games/backgammon/teachgammon/teach.c b/games/backgammon/teachgammon/teach.c index 308bc60..f8dc85e 100644 --- a/games/backgammon/teachgammon/teach.c +++ b/games/backgammon/teachgammon/teach.c @@ -47,6 +47,7 @@ static const char rcsid[] = #include <string.h> #include <sys/types.h> +#include <termcap.h> #include <unistd.h> #include <signal.h> #include "back.h" @@ -64,8 +65,6 @@ extern char *stragy[]; extern char *prog[]; extern char *lastch[]; -extern char ospeed; /* tty output speed for termlib */ - const char *const helpm[] = { "\nEnter a space or newline to roll, or", " b to display the board", |