PowerPC: Fix termios definitions
commit7ed8c421f71f89978da0ba30b19df245c7c02e39
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 20 Aug 2019 20:16:18 +0000 (20 23:16 +0300)
committerWaldemar Brodkorb <wbx@openadk.org>
Mon, 30 Sep 2019 17:25:00 +0000 (30 19:25 +0200)
tree09949d3384d0a79fff880fde29bfa120c1cf9fe9
parent8bcbb7f3188e3322d6063343ada991b29198092d
PowerPC: Fix termios definitions

This patch fixes the incorrect guard by __USE_MISC of struct winsize and
struct termio in powerpc termios header.  Current states leads to build
failures if the program defines _XOPEN_SOURCE, but not _DEFAULT_SOURCE
or either _BSD_SOURCE or _SVID_SOURCE.  Without any definition,
__USE_MISC will not be defined and neither the struct definitions.

This patch copies the default Linux ioctl-types.h by adjusting only the
character control field (c_cc) size in struct termio.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
[Vadim: adopted for uclibc ]
libc/sysdeps/linux/powerpc/bits/ioctl-types.h
libc/sysdeps/linux/powerpc/bits/termios.h