From 09625c2ec7cbc0f39f1a3400326fecb2ad0a0ac5 Mon Sep 17 00:00:00 2001 From: James Buren Date: Tue, 3 Sep 2013 02:50:57 -0500 Subject: agetty: only use EXTA/EXTB macros if B19200/B38400 macros are not present --- term-utils/agetty.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'term-utils/agetty.c') diff --git a/term-utils/agetty.c b/term-utils/agetty.c index c23b91c14..04b7ee465 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -187,16 +187,14 @@ static const struct Speedtab speedtab[] = { {2400, B2400}, {4800, B4800}, {9600, B9600}, -#ifdef B19200 +#ifdef B19200 {19200, B19200}, -#endif -#ifdef B38400 - {38400, B38400}, -#endif -#ifdef EXTA +#elif defined(EXTA) {19200, EXTA}, #endif -#ifdef EXTB +#ifdef B38400 + {38400, B38400}, +#elif defined(EXTB) {38400, EXTB}, #endif #ifdef B57600 -- cgit v1.2.3-55-g7522