From: James Buren Date: Tue, 3 Sep 2013 07:50:57 +0000 (-0500) Subject: agetty: only use EXTA/EXTB macros if B19200/B38400 macros are not present X-Git-Tag: v2.24-rc1~274 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09625c2ec7cbc0f39f1a3400326fecb2ad0a0ac5;p=thirdparty%2Futil-linux.git agetty: only use EXTA/EXTB macros if B19200/B38400 macros are not present --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index c23b91c14c..04b7ee4651 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