From cd921b877019bba4015197c31833c86aeab1df69 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 25 Mar 2008 11:28:43 -0400 Subject: ispeed/ospeed don't exist on all platforms. Use accessor functions. --- src/console_check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/console_check.c b/src/console_check.c index e188ebe5..595012ff 100644 --- a/src/console_check.c +++ b/src/console_check.c @@ -52,7 +52,7 @@ struct speeds speed_map[] = int termcmp(struct termios *a, struct termios *b) { if (a->c_iflag != b->c_iflag || a->c_oflag != b->c_oflag || a->c_cflag != b->c_cflag || a->c_lflag != b->c_lflag || - a->c_ispeed != b->c_ispeed || a->c_ospeed != b->c_ospeed) + cfgetispeed(a) != cfgetispeed(b) || cfgetospeed(a) != cfgetospeed(b)) return 1; return memcmp(a->c_cc, b->c_cc, sizeof(a->c_cc)); } -- cgit v1.2.1