PowerPC: Fix termios definitions
commitd4795e4a43e6f0c221bc5dc64c612206a21a177b
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 24 Jul 2014 12:28:57 +0000 (24 08:28 -0400)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 6 Aug 2014 18:31:54 +0000 (6 14:31 -0400)
tree203f9cadce14bef4d0f48cf3cb9d4906c020431a
parent27bb6dc0db1d0da548a0be3ec1aa33e2c25565cd
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.
ChangeLog
sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h
sysdeps/unix/sysv/linux/powerpc/bits/termios.h