This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Fix MIPS TIOCSER_TEMT namespace (bug 17782) [committed]
- From: Joseph Myers <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Fri, 2 Jan 2015 18:33:09 +0000
- Subject: Fix MIPS TIOCSER_TEMT namespace (bug 17782) [committed]
- Authentication-results: sourceware.org; auth=none
sysdeps/unix/sysv/linux/mips/bits/termios.h defines TIOCSER_TEMT
unconditionally, but it's in the user's namespace. This patch
conditions it on __USE_MISC, as on powerpc. I've filed bug 17783 for
the residual inconsistency in conditions on this macro (sparc defines
it for __USE_GNU only).
Committed.
2015-01-02 Joseph Myers <joseph@codesourcery.com>
[BZ #17782]
* sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
Condition macro definition on [__USE_MISC].
diff --git a/sysdeps/unix/sysv/linux/mips/bits/termios.h b/sysdeps/unix/sysv/linux/mips/bits/termios.h
index 8f640e1..666d6a3 100644
--- a/sysdeps/unix/sysv/linux/mips/bits/termios.h
+++ b/sysdeps/unix/sysv/linux/mips/bits/termios.h
@@ -197,8 +197,10 @@ struct termios
# define EXTPROC 0200000
#endif
+#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
/* tcflow() and TCXONC use these */
#define TCOOFF 0 /* Suspend output. */
--
Joseph S. Myers
joseph@codesourcery.com