Don't declare our own common version of the library variable `ospeed'.
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.
This commit is contained in:
parent
b8483c75e1
commit
c1e954d14a
@ -102,6 +102,7 @@ static const char rcsid[] =
|
||||
#include <varargs.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <termcap.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "snake.h"
|
||||
@ -110,7 +111,6 @@ int CMlength;
|
||||
int NDlength;
|
||||
int BSlength;
|
||||
int delaystr[10];
|
||||
short ospeed;
|
||||
|
||||
static char str[80];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user