diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-01-04 22:47:10 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-07 17:23:07 +0000 |
commit | f2646ea56e5ce82561089956c4a1f0d3c81087b1 (patch) | |
tree | 46cc3a86cf722d9e107d97e25782d4480dcf33bb /meta/recipes-core/util-linux/util-linux | |
parent | d288dc17d6fe6e88d6a490f258e8d2502d661aad (diff) | |
download | openembedded-core-contrib-f2646ea56e5ce82561089956c4a1f0d3c81087b1.tar.gz |
util-linux: Fix build with glibc 2.29
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch b/meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch new file mode 100644 index 0000000000..c92c276ac1 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch @@ -0,0 +1,16 @@ +Checking for exitence of the define is not enough since +it will be defined with 0 or 1 value + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- a/sys-utils/ldattach.c ++++ b/sys-utils/ldattach.c +@@ -242,7 +242,7 @@ static int my_cfsetspeed(struct termios + * -- 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; |