0001-Replace-sgtty-by-termios.patch

uqs, 08/29/2009 12:14 AM

Download (1.31 KB)

View differences:

games/trek/main.c
38 38

  
39 39
# include	"getpar.h"
40 40
# include	"trek.h"
41
# include	<sgtty.h>
41
# include 	<termios.h>
42 42

  
43 43
# define	PRIO		00	/* default priority */
44 44

  
......
151 151
	int			prio;
152 152
	int		ac;
153 153
	char		**av;
154
	struct	sgttyb		argp;
154
	struct	termios		argp;
155 155

  
156 156
	/* revoke */
157 157
	setgid(getgid());
......
162 162
	srandomdev();
163 163
	opencode = 'w';
164 164
	prio = PRIO;
165
	if (ioctl(1, TIOCGETP, &argp) == 0)
165
	if (tcgetattr(1, &argp) == 0)
166 166
	{
167
		if ((argp.sg_ispeed ) < B1200)
167
		if ((cfgetispeed(&argp)) < B1200)
168 168
			Etc.fast++;
169 169
	}
170 170
	while (ac > 1 && av[0][0] == '-')
171
-