aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/powerpc
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2018-10-08 17:51:32 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-01-03 09:32:12 -0200
commit8083afa55d8c68abc02902e9a6ff16be5f301940 (patch)
tree755437189501b4bed4b41f9bebfa1c355ce09083 /sysdeps/unix/sysv/linux/powerpc
parent4d7d7dc6fe52216bab2a1a171966028276b0dde3 (diff)
downloadglibc-8083afa55d8c68abc02902e9a6ff16be5f301940.tar
glibc-8083afa55d8c68abc02902e9a6ff16be5f301940.tar.gz
glibc-8083afa55d8c68abc02902e9a6ff16be5f301940.tar.bz2
glibc-8083afa55d8c68abc02902e9a6ff16be5f301940.zip
termios: Define TIOCSER_TEMT with __USE_MISC (BZ#17783)
This patch defines TIOCSER_TEMT on all architectures using the __USE_MISC guards similar to BZ#17782 fix. Latest Linux UAPI defines TIOCSER_TEMT with the same value for all architectures, so it is safe to use the value as default for all ABIs. Checked on x86_64linux-gnu and build against sparc64-linux-gnu and powerpc64le-linux-gnu. [BZ #17783] * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT): Define. * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC] (TIOCSER_TEMT): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC] (TEOCSER_TEMT): Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/bits/termios.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/termios.h b/sysdeps/unix/sysv/linux/powerpc/bits/termios.h
index 5236dc9adb..050d947eb9 100644
--- a/sysdeps/unix/sysv/linux/powerpc/bits/termios.h
+++ b/sysdeps/unix/sysv/linux/powerpc/bits/termios.h
@@ -273,7 +273,9 @@ struct ltchars {
#define _VEOL2 8
#define _VSWTC 9
+#ifdef __USE_MISC
/* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */
-#define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
+# define TIOCSER_TEMT 0x01 /* Transmitter physically empty */
+#endif
#endif /* __USE_MISC */