summaryrefslogtreecommitdiffstats
path: root/sys-utils/ldattach.c
diff options
context:
space:
mode:
authorKhem Raj2019-01-05 07:38:25 +0100
committerKhem Raj2019-01-05 07:38:25 +0100
commit963413a1adf6767ab17712097e288e1a346f63a7 (patch)
tree8319c32a382c66d7a4a10b70970bfac3af07a1e5 /sys-utils/ldattach.c
parentlibblkid: (ntfs) fix compiler warning [-Wpedantic] (diff)
downloadkernel-qcow2-util-linux-963413a1adf6767ab17712097e288e1a346f63a7.tar.gz
kernel-qcow2-util-linux-963413a1adf6767ab17712097e288e1a346f63a7.tar.xz
kernel-qcow2-util-linux-963413a1adf6767ab17712097e288e1a346f63a7.zip
ldattach: Check for value of _HAVE_STRUCT_TERMIOS_C_ISPEED
in glibc 2.29+ checking for just existence of _HAVE_STRUCT_TERMIOS_C_ISPEED won't be enough, the value has to be checked see https://sourceware.org/git/?p=glibc.git;a=commit;h=e5a50db36eaa6e8c6427b3a971563240b633ca85 Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'sys-utils/ldattach.c')
-rw-r--r--sys-utils/ldattach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c
index d33d68535..fb50711eb 100644
--- a/sys-utils/ldattach.c
+++ b/sys-utils/ldattach.c
@@ -242,7 +242,7 @@ static int my_cfsetspeed(struct termios *ts, int speed)
* -- we have to bypass glibc and set the speed manually (because glibc
* checks for speed and supports Bxxx bit rates only)...
*/
-#ifdef _HAVE_STRUCT_TERMIOS_C_ISPEED
+#if _HAVE_STRUCT_TERMIOS_C_ISPEED
# define BOTHER 0010000 /* non standard rate */
dbg("using non-standard speeds");
ts->c_ospeed = ts->c_ispeed = speed;