blob: c92c276ac11dd47e87bd9b4356efdbcdd0099a9f [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001Checking for exitence of the define is not enough since
2it will be defined with 0 or 1 value
3
4Upstream-Status: Pending
5Signed-off-by: Khem Raj <raj.khem@gmail.com>
6--- a/sys-utils/ldattach.c
7+++ b/sys-utils/ldattach.c
8@@ -242,7 +242,7 @@ static int my_cfsetspeed(struct termios
9 * -- we have to bypass glibc and set the speed manually (because glibc
10 * checks for speed and supports Bxxx bit rates only)...
11 */
12-#ifdef _HAVE_STRUCT_TERMIOS_C_ISPEED
13+#if _HAVE_STRUCT_TERMIOS_C_ISPEED
14 # define BOTHER 0010000 /* non standard rate */
15 dbg("using non-standard speeds");
16 ts->c_ospeed = ts->c_ispeed = speed;