]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: only use EXTA/EXTB macros if B19200/B38400 macros are not present
authorJames Buren <ryuo@frugalware.org>
Tue, 3 Sep 2013 07:50:57 +0000 (02:50 -0500)
committerKarel Zak <kzak@redhat.com>
Thu, 12 Sep 2013 09:02:48 +0000 (11:02 +0200)
term-utils/agetty.c

index c23b91c14cbc4cb74f3a9d7aaa0457a179afac50..04b7ee465182c49098e354a47690fdb28369ad1e 100644 (file)
@@ -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