getty: Hurd has no CBAUD, work around that
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 30 Oct 2011 20:27:33 +0000 (21:27 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 30 Oct 2011 20:27:33 +0000 (21:27 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
loginutils/getty.c

index 4d52197..1f41759 100644 (file)
@@ -266,7 +266,9 @@ static void init_tty_attrs(int speed)
 #ifdef CMSPAR
                | CMSPAR  /* mark or space parity */
 #endif
+#ifdef CBAUD
                | CBAUD   /* (output) baud rate */
+#endif
 #ifdef CBAUDEX
                | CBAUDEX /* (output) baud rate */
 #endif