]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ldattach: add ifndef BOTHER
authorKarel Zak <kzak@redhat.com>
Tue, 24 Jun 2025 09:14:29 +0000 (11:14 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Jun 2025 09:14:29 +0000 (11:14 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/ldattach.c

index e06047c71cd1b74d80bbc63649e7e235b7e46fcb..25903b4eb737b9df9c3e66bee3b724b5ca8fcfaa 100644 (file)
@@ -241,7 +241,9 @@ static int my_cfsetspeed(struct termios *ts, int speed)
         *    checks for speed and supports Bxxx bit rates only)...
         */
 #if _HAVE_STRUCT_TERMIOS_C_ISPEED
-# define BOTHER 0010000                /* non standard rate */
+# ifndef BOTHER
+#  define BOTHER 0010000               /* non standard rate */
+# endif
        dbg("using non-standard speeds");
        ts->c_ospeed = ts->c_ispeed = speed;
        ts->c_cflag &= ~CBAUD;