Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | Checking for exitence of the define is not enough since |
| 2 | it will be defined with 0 or 1 value |
| 3 | |
| 4 | Upstream-Status: Pending |
| 5 | Signed-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; |