Project

General

Profile

Bug #1470 » 0001-Replace-sgtty-by-termios.patch

uqs, 08/29/2009 12:14 AM

View differences:

games/trek/main.c
# include "getpar.h"
# include "trek.h"
# include <sgtty.h>
# include <termios.h>
# define PRIO 00 /* default priority */
......
int prio;
int ac;
char **av;
struct sgttyb argp;
struct termios argp;
/* revoke */
setgid(getgid());
......
srandomdev();
opencode = 'w';
prio = PRIO;
if (ioctl(1, TIOCGETP, &argp) == 0)
if (tcgetattr(1, &argp) == 0)
{
if ((argp.sg_ispeed ) < B1200)
if ((cfgetispeed(&argp)) < B1200)
Etc.fast++;
}
while (ac > 1 && av[0][0] == '-')
-
(1-1/2)