diff options
author | James Buren | 2013-09-03 09:50:57 +0200 |
---|---|---|
committer | Karel Zak | 2013-09-12 11:02:48 +0200 |
commit | 09625c2ec7cbc0f39f1a3400326fecb2ad0a0ac5 (patch) | |
tree | 3ae1239f3512f520b08222ec713d782dac8eb45a /term-utils/agetty.c | |
parent | libblkid: export info about bad csum (diff) | |
download | kernel-qcow2-util-linux-09625c2ec7cbc0f39f1a3400326fecb2ad0a0ac5.tar.gz kernel-qcow2-util-linux-09625c2ec7cbc0f39f1a3400326fecb2ad0a0ac5.tar.xz kernel-qcow2-util-linux-09625c2ec7cbc0f39f1a3400326fecb2ad0a0ac5.zip |
agetty: only use EXTA/EXTB macros if B19200/B38400 macros are not present
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r-- | term-utils/agetty.c | 12 |
1 files changed, 5 insertions, 7 deletions
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 |