From: Karel Zak Date: Tue, 24 Jun 2025 09:14:29 +0000 (+0200) Subject: ldattach: add ifndef BOTHER X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fstable%2Fv2.41;p=thirdparty%2Futil-linux.git ldattach: add ifndef BOTHER Signed-off-by: Karel Zak (cherry picked from commit 5405c3e09057db82ed397e61443effa9614dbc4a) --- diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c index e06047c71..25903b4eb 100644 --- a/sys-utils/ldattach.c +++ b/sys-utils/ldattach.c @@ -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;