]> err.no Git - util-linux/commitdiff
agetty: IUCLC and OLCUC are Linux extensions
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 22 Apr 2009 07:34:10 +0000 (09:34 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 23 Apr 2009 13:43:42 +0000 (15:43 +0200)
IUCLC and OLCUC are Linux extensions to termios. The same way it is
already done for XCASE, they can be ignored if not supported.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
login-utils/agetty.c

index 29ce149909fffbc7ad7cb2015a3d205d1f6a896a..90a64b33b9c595c64e86d481a9280bf99ec6b7dd 100644 (file)
@@ -1146,11 +1146,15 @@ termio_final(op, tp, cp)
     /* Account for upper case without lower case. */
 
     if (cp->capslock) {
+#ifdef IUCLC
        tp->c_iflag |= IUCLC;
+#endif
 #ifdef XCASE   
        tp->c_lflag |= XCASE;
 #endif
+#ifdef OLCUC
        tp->c_oflag |= OLCUC;
+#endif
     }
     /* Optionally enable hardware flow control */