picocom: fix build for x86 with musl libc
authorBaruch Siach <baruch@tkos.co.il>
Thu, 12 Apr 2018 16:43:52 +0000 (19:43 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 12 Apr 2018 19:26:54 +0000 (21:26 +0200)
commit63f7b84932e884409c5a46c7e91058e2c9f75a00
tree4c456c7ee466799a1c86046e071fcb4c14f4433e
parentcdb7876f63a253254b86637aaac8b255a426b60a
picocom: fix build for x86 with musl libc

Since version 3.1 picocom enabled by default custom baud rate support
for x86 targets. This requires the c_ispeed and c_opseed field in struct
termios that musl libc does not provide. Add an upstream patch that
restricts custom baud rates to C libraries that provide the needed
termios fields.

Fixes:
http://autobuild.buildroot.net/results/28e/28ec584484dedfd6ef473dfd9dd24481e27ce2b3/
http://autobuild.buildroot.net/results/912/912493a8f99416524a5897634ae62604436e9b51/
http://autobuild.buildroot.net/results/65d/65d0f449822f296dfe6b9be0e03a5a855f700a9e/

Cc: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/picocom/0001-Compile-with-libc-s-without-cispeed-cospeed.patch [new file with mode: 0644]